Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: chrome/browser/extensions/bundle_installer.cc

Issue 10010038: Do not show the install prompt for themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/bundle_installer.cc
diff --git a/chrome/browser/extensions/bundle_installer.cc b/chrome/browser/extensions/bundle_installer.cc
index db915d4c0da5fec068020c8ad877121072e3725a..68a92bb9a7333cc193cd873fa99d076cfcbc7703 100644
--- a/chrome/browser/extensions/bundle_installer.cc
+++ b/chrome/browser/extensions/bundle_installer.cc
@@ -266,12 +266,8 @@ void BundleInstaller::ShowPrompt() {
} else if (g_auto_approve_for_test == ABORT) {
InstallUIAbort(true);
} else {
- ExtensionInstallUI::Prompt prompt(
- ExtensionInstallUI::BUNDLE_INSTALL_PROMPT);
- prompt.SetPermissions(permissions->GetWarningMessages());
- prompt.set_bundle(this);
-
- ShowExtensionInstallDialog(profile_, this, prompt);
+ install_ui_.reset(new ExtensionInstallUI(profile_));
+ install_ui_->ConfirmBundleInstall(this, permissions);
}
}

Powered by Google App Engine
This is Rietveld 408576698