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

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

Issue 8430033: Adds a webstorePrivate method for silently installing extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mihai Created 9 years, 1 month 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/extension_install_ui.cc
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 409e6dd50ca9aeef0f4ad4ae7609cde4a5bd0046..5c043153f620efad42c7c35260e8ea61db30fa33 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -198,7 +198,8 @@ ExtensionInstallUI::ExtensionInstallUI(Profile* profile)
delegate_(NULL),
prompt_type_(NUM_PROMPT_TYPES),
ALLOW_THIS_IN_INITIALIZER_LIST(tracker_(this)),
- use_app_installed_bubble_(false) {
+ use_app_installed_bubble_(false),
+ skip_post_install_ui_(false) {
// Remember the current theme in case the user presses undo.
if (profile_) {
const Extension* previous_theme =
@@ -255,6 +256,9 @@ void ExtensionInstallUI::ConfirmPermissions(
void ExtensionInstallUI::OnInstallSuccess(const Extension* extension,
SkBitmap* icon) {
+ if (skip_post_install_ui_)
+ return;
+
extension_ = extension;
SetIcon(icon);
« no previous file with comments | « chrome/browser/extensions/extension_install_ui.h ('k') | chrome/browser/extensions/extension_webstore_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698