From 06e8a9d9635872338d5ac9956e24590e2ddcfb9e Mon Sep 17 00:00:00 2001 From: "mirandac@chromium.org" Date: Fri, 4 Sep 2009 21:58:59 +0000 Subject: Make sure theme loading bubble is cancelled when extension install is cancelled. BUG= http://crbug.com/21096 TEST= Install theme. Cancel install at dialog box. Note disappearance of "loading" bubble. Review URL: http://codereview.chromium.org/201019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25521 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/crx_installer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/extensions/crx_installer.cc') diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index 1c09104..c90870f 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -198,6 +198,11 @@ void CrxInstaller::ContinueInstall() { } void CrxInstaller::AbortInstall() { + // Kill the theme loading bubble. + NotificationService* service = NotificationService::current(); + service->Notify(NotificationType::NO_THEME_DETECTED, + Source(this), + NotificationService::NoDetails()); Release(); // balanced in ConfirmInstall(). // We're done. Since we don't post any more tasks to ourself, our ref count -- cgit v1.1