'Ensure that the name property of the manifest exists and is a string
between 1 and 45 characters long.
In addition, even though it\'s allowed in the spec, we consider the name
invalid (too short) if it contains only whitespace characters.
https://developer.chrome.com/extensions/manifest/name'

def validate_name(self, manifest_json):

    try:
        name = manifest_json['name']
    except KeyError:
        self.error('NAME_MISSING')
    if (not isinstance(name, basestring)):
        self.error('NAME_NOT_STRING')
    if (len(name.strip()) < 1):
        self.error('NAME_TOO_SHORT')
    if (len(name) > 45):
        self.error('NAME_TOO_LONG')
