From 557c7bd3a12d45a4aeb1ced28876831f845ed8c0 Mon Sep 17 00:00:00 2001 From: "DHNishi@gmail.com" Date: Wed, 18 Sep 2013 21:51:25 +0000 Subject: 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 --- extensions/common/manifest_constants.cc | 2 ++ extensions/common/manifest_constants.h | 1 + 2 files changed, 3 insertions(+) (limited to 'extensions') 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[]; -- cgit v1.1