summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
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/cocoa
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/cocoa')
-rw-r--r--chrome/browser/cocoa/theme_install_bubble_view.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/theme_install_bubble_view.mm b/chrome/browser/cocoa/theme_install_bubble_view.mm
index f3c2c25..70a7cee 100644
--- a/chrome/browser/cocoa/theme_install_bubble_view.mm
+++ b/chrome/browser/cocoa/theme_install_bubble_view.mm
@@ -73,6 +73,16 @@ ThemeInstallBubbleView::ThemeInstallBubbleView(NSWindow* window)
this,
NotificationType::EXTENSION_INSTALLED,
NotificationService::AllSources());
+ registrar_.Add(
+ this,
+ NotificationType::EXTENSION_INSTALL_ERROR,
+ NotificationService::AllSources());
+
+ // Don't let the bubble overlap the confirm dialog.
+ registrar_.Add(
+ this,
+ NotificationType::EXTENSION_WILL_SHOW_CONFIRM_DIALOG,
+ NotificationService::AllSources());
// Add the view.
[cocoa_view_ setFrame:parent_bounds];