summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_constants.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-20 08:21:19 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-20 08:21:19 +0000
commite9303b94084cd53410efd6a5e9ce78e960ac8ffe (patch)
tree606ba708d96bcaef0351ca2181eeebbd81fee11c /chrome/common/extensions/extension_constants.cc
parent0c13b4a1a56078265821f10b5bb77a4ac2f891ce (diff)
downloadchromium_src-e9303b94084cd53410efd6a5e9ce78e960ac8ffe.zip
chromium_src-e9303b94084cd53410efd6a5e9ce78e960ac8ffe.tar.gz
chromium_src-e9303b94084cd53410efd6a5e9ce78e960ac8ffe.tar.bz2
Pull gallery special case down into Extension::CanAccessHost() to avoid duplicating it in multiple places.
Also rename that method to better reflect what it is used for. BUG=35382 Review URL: http://codereview.chromium.org/650086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_constants.cc')
-rw-r--r--chrome/common/extensions/extension_constants.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 570e90d..d5233be 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -217,6 +217,9 @@ const char* kInvalidOptionsPage =
"Invalid value for 'options_page'.";
const char* kReservedMessageFound =
"Reserved key * found in message catalog.";
+const char* kCannotAccessPage = "Cannot access contents of url \"*\". "
+ "Extension manifest must request permission to access this host.";
+const char* kCannotScriptGallery = "The extensions gallery cannot be scripted.";
} // namespace extension_manifest_errors
namespace extension_urls {