summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/crx_installer.cc
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-29 00:45:34 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-29 00:45:34 +0000
commitc09e2d208da071a7fdb7d53c7f0bdea4e0aa2fd8 (patch)
tree4c24a67380cbaf52b4dfa90e17189ccec01dbc66 /chrome/browser/extensions/crx_installer.cc
parentfdf6801902413c5662d071fba731e013e04f5181 (diff)
downloadchromium_src-c09e2d208da071a7fdb7d53c7f0bdea4e0aa2fd8.zip
chromium_src-c09e2d208da071a7fdb7d53c7f0bdea4e0aa2fd8.tar.gz
chromium_src-c09e2d208da071a7fdb7d53c7f0bdea4e0aa2fd8.tar.bz2
Revert 67500 - Adds a section to the extension preferences to store the recognized permissions that the user has granted the extension.
Ignores unknown permissions when installing extensions. Disables extension and prompts user to re-enable when unknown permissions become recognized (e.g., through browser upgrade). Allows extensions to remove a permission in one version, then add them back in the next without prompting the user. BUG=42742 TEST=ExtensionsServiceTest, ExtensionPrefsGrantedPermissions, ExtensionTest Review URL: http://codereview.chromium.org/4687005 TBR=jstritar@chromium.org Review URL: http://codereview.chromium.org/5286009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r--chrome/browser/extensions/crx_installer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index efe3ad1..3a9a3df 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -83,6 +83,7 @@ CrxInstaller::CrxInstaller(ExtensionsService* frontend,
install_source_(Extension::INTERNAL),
extensions_enabled_(frontend->extensions_enabled()),
delete_source_(false),
+ allow_privilege_increase_(false),
is_gallery_install_(false),
create_app_shortcut_(false),
frontend_(frontend),
@@ -432,7 +433,7 @@ void CrxInstaller::ReportSuccessFromUIThread() {
// Tell the frontend about the installation and hand off ownership of
// extension_ to it.
- frontend_->OnExtensionInstalled(extension_);
+ frontend_->OnExtensionInstalled(extension_, allow_privilege_increase_);
extension_ = NULL;
// We're done. We don't post any more tasks to ourselves so we are deleted