Remove getting manifest version attribute error code, as
according to w3c specification version attribute is optional
and can be any string.
Links to spec:
http://www.w3.org/TR/widgets/#the-version-attribute and
http://www.w3.org/TR/widgets/#version-attribute
Change-Id: I5d8192a34721d8e7c9ac08af70e98af9fd011dda
bool ApplicationData::LoadVersion(std::string* error) {
assert(error);
- std::string version_str;
-
- version_ = "";
-
- bool ok = manifest_->GetString(widget_keys::kVersionKey, &version_str);
- if (!ok) {
- *error = errors::kInvalidVersion;
- return true;
- }
-
- version_ = std::string(version_str);
+ if (!manifest_->GetString(widget_keys::kVersionKey, &version_))
+ LOG(INFO) << "Version is not defined.";
return true;
}
"Value 'key' is missing or invalid.";
const char kInvalidName[] =
"Required value 'name' is missing or invalid.";
-const char kInvalidVersion[] =
- "Required value 'version' is missing or invalid. It must be between 1-4 "
- "dot-separated integers each between 0 and 65536.";
const char kManifestParseError[] =
"Manifest is not valid JSON.";
const char kManifestUnreadable[] =