summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 18:34:12 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 18:34:12 +0000
commit201ebfe03681052d1233f12d18e47392dba761bd (patch)
tree5c8e3f614cca352f00869499dbe352a8fc79d532 /chrome/browser/extensions
parent2326c76cd7fc51f691e6891cb5327afa8bf361e9 (diff)
downloadchromium_src-201ebfe03681052d1233f12d18e47392dba761bd.zip
chromium_src-201ebfe03681052d1233f12d18e47392dba761bd.tar.gz
chromium_src-201ebfe03681052d1233f12d18e47392dba761bd.tar.bz2
Hide the theme install bubble a little earlier.
The bubble was showing at the same time as the installation confirmation dialog for non-theme extensions. BUG=26130 Review URL: http://codereview.chromium.org/339055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_install_ui.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 720e19d..1712791 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/notification_service.h"
#include "grit/browser_resources.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -113,6 +114,11 @@ void ExtensionInstallUI::ConfirmInstall(Delegate* delegate,
IDR_EXTENSIONS_SECTION);
}
+ NotificationService* service = NotificationService::current();
+ service->Notify(NotificationType::EXTENSION_WILL_SHOW_CONFIRM_DIALOG,
+ Source<ExtensionInstallUI>(this),
+ NotificationService::NoDetails());
+
ShowExtensionInstallPrompt(profile_, delegate, extension, install_icon,
GetInstallWarning(extension));