diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 09:10:29 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 09:10:29 +0000 |
commit | ceefd3dc54b0126bec1298a129b0ca4361e7ab7b (patch) | |
tree | 7e306a0acac801cbaa3b59aad073874eba1b724a /chrome/common/extensions/extension_constants.cc | |
parent | 4b2a88c12a0db35cc412535250f900acce7a3c17 (diff) | |
download | chromium_src-ceefd3dc54b0126bec1298a129b0ca4361e7ab7b.zip chromium_src-ceefd3dc54b0126bec1298a129b0ca4361e7ab7b.tar.gz chromium_src-ceefd3dc54b0126bec1298a129b0ca4361e7ab7b.tar.bz2 |
Add "origin" to the app object in the extension manifest.
Review URL: http://codereview.chromium.org/897002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_constants.cc')
-rw-r--r-- | chrome/common/extensions/extension_constants.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc index bfb968d..173b4fa 100644 --- a/chrome/common/extensions/extension_constants.cc +++ b/chrome/common/extensions/extension_constants.cc @@ -11,6 +11,7 @@ const wchar_t* kApp = L"app"; const wchar_t* kAppExtent = L"extent"; const wchar_t* kAppLaunchUrl = L"launch.url"; const wchar_t* kAppLaunchWindowType = L"launch.window_type"; +const wchar_t* kAppOrigin = L"origin"; const wchar_t* kBackground = L"background_page"; const wchar_t* kBrowserAction = L"browser_action"; const wchar_t* kChromeURLOverrides = L"chrome_url_overrides"; @@ -74,6 +75,7 @@ const char* kWindowTypePanel = "panel"; // printf because we want to unit test them and scanf is hard to make // cross-platform. namespace extension_manifest_errors { +const char* kAppsDisabled = "Apps are disabled."; const char* kChromeVersionTooLow = "This extension requires * version * or greater."; const char* kInvalidAllFrames = @@ -85,6 +87,9 @@ const char* kInvalidAppLaunchUrl = "Required value 'app.launch.url' is missing or invalid."; const char* kInvalidAppLaunchWindowType = "Invalid value for 'app.launch.window_type'."; +const char* kInvalidAppOrigin = + "Invalid value for 'app.origin'. Value must be a URL of the form " + "scheme://host[:port]/ where scheme is http or https."; const char* kInvalidBrowserAction = "Invalid value for 'browser_action'."; const char* kInvalidChromeURLOverrides = |