diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 15:46:13 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 15:46:13 +0000 |
commit | c422a86428ae3ec62a964b1705183ef5275d39b1 (patch) | |
tree | 74532de3fd7c7b00ca7a17820b346b6390706664 /chrome/browser/extensions/webstore_inline_installer.cc | |
parent | 73b453770ad864429343ecd5032ca4037addbbd3 (diff) | |
download | chromium_src-c422a86428ae3ec62a964b1705183ef5275d39b1.zip chromium_src-c422a86428ae3ec62a964b1705183ef5275d39b1.tar.gz chromium_src-c422a86428ae3ec62a964b1705183ef5275d39b1.tar.bz2 |
Pass through Extension::FROM_WEBSTORE to Extension::Create when installing an
extension from the webstore. Without that, webstore-specific permissions
checking doesn't happen, notably, whitelisted extensions requesting the
"experimental" permission (e.g. Accessibility Developer Tools) can't be
installed without enabling experimental APIs in about:flags.
Review URL: https://chromiumcodereview.appspot.com/10834082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/webstore_inline_installer.cc')
-rw-r--r-- | chrome/browser/extensions/webstore_inline_installer.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc index 50a63cb..ef860ec 100644 --- a/chrome/browser/extensions/webstore_inline_installer.cc +++ b/chrome/browser/extensions/webstore_inline_installer.cc @@ -351,7 +351,12 @@ void WebstoreInlineInstaller::OnWebstoreParseSuccess( rating_count_); std::string error; dummy_extension_ = ExtensionInstallPrompt::GetLocalizedExtensionForDisplay( - manifest, id_, localized_name_, localized_description_, &error); + manifest, + Extension::REQUIRE_KEY | Extension::FROM_WEBSTORE, + id_, + localized_name_, + localized_description_, + &error); if (!dummy_extension_) { OnWebstoreParseFailure(id_, WebstoreInstallHelper::Delegate::MANIFEST_ERROR, kInvalidManifestError); |