diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 21:58:59 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 21:58:59 +0000 |
commit | 06e8a9d9635872338d5ac9956e24590e2ddcfb9e (patch) | |
tree | a9de894d75c0a6c5653bd5ba1223affa7eccafbf /chrome/browser/extensions/crx_installer.cc | |
parent | 8b4f4895a2170a7077e004e27541485a2c7a1a0a (diff) | |
download | chromium_src-06e8a9d9635872338d5ac9956e24590e2ddcfb9e.zip chromium_src-06e8a9d9635872338d5ac9956e24590e2ddcfb9e.tar.gz chromium_src-06e8a9d9635872338d5ac9956e24590e2ddcfb9e.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<CrxInstaller>(this), + NotificationService::NoDetails()); Release(); // balanced in ConfirmInstall(). // We're done. Since we don't post any more tasks to ourself, our ref count |