diff options
author | DHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 21:51:25 +0000 |
---|---|---|
committer | DHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 21:51:25 +0000 |
commit | 557c7bd3a12d45a4aeb1ced28876831f845ed8c0 (patch) | |
tree | 13deaa96a60ff126180de8473da564be43cd2881 /extensions | |
parent | bd4a5262697b4d4fa1f54b6b0409dfd321595c3b (diff) | |
download | chromium_src-557c7bd3a12d45a4aeb1ced28876831f845ed8c0.zip chromium_src-557c7bd3a12d45a4aeb1ced28876831f845ed8c0.tar.gz chromium_src-557c7bd3a12d45a4aeb1ced28876831f845ed8c0.tar.bz2 |
Make loading an unpacked extension produce an error if it contains a malformed messages.json.
Continued from Patrick Riordan's 16279004
BUG=148530
Review URL: https://chromiumcodereview.appspot.com/23460008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/manifest_constants.cc | 2 | ||||
-rw-r--r-- | extensions/common/manifest_constants.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/extensions/common/manifest_constants.cc b/extensions/common/manifest_constants.cc index caf22e1..7ab1d23 100644 --- a/extensions/common/manifest_constants.cc +++ b/extensions/common/manifest_constants.cc @@ -598,6 +598,8 @@ const char kLaunchPathAndURLAreExclusive[] = "both be set."; const char kLaunchURLRequired[] = "Either 'app.launch.local_path' or 'app.launch.web_url' is required."; +const char kLocalesInvalidLocale[] = + "Invalid locale file '*': *"; const char kLocalesMessagesFileMissing[] = "Messages file is missing for locale."; const char kLocalesNoDefaultLocaleSpecified[] = diff --git a/extensions/common/manifest_constants.h b/extensions/common/manifest_constants.h index f87fdf2..53fb1ef 100644 --- a/extensions/common/manifest_constants.h +++ b/extensions/common/manifest_constants.h @@ -400,6 +400,7 @@ extern const char kInsecureContentSecurityPolicy[]; extern const char kLaunchPathAndExtentAreExclusive[]; extern const char kLaunchPathAndURLAreExclusive[]; extern const char kLaunchURLRequired[]; +extern const char kLocalesInvalidLocale[]; extern const char kLocalesMessagesFileMissing[]; extern const char kLocalesNoDefaultLocaleSpecified[]; extern const char kLocalesNoDefaultMessages[]; |