diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 23:13:07 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 23:13:07 +0000 |
commit | 9f3a59facc7244a50d973fa414cc4f022fb1c71f (patch) | |
tree | 0429458861296d3105e39d40f2cb33f4ed951309 /chrome/browser | |
parent | aa4f9afa942cd07c46afb2c56e0ce708a047e803 (diff) | |
download | chromium_src-9f3a59facc7244a50d973fa414cc4f022fb1c71f.zip chromium_src-9f3a59facc7244a50d973fa414cc4f022fb1c71f.tar.gz chromium_src-9f3a59facc7244a50d973fa414cc4f022fb1c71f.tar.bz2 |
Fix loading bubble not disappearing with corrupt theme image.
BUG= http://crbug.com/21044
TEST= try installing a theme with a corrupt image. note that loading bubble disappears.
Review URL: http://codereview.chromium.org/196016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index 7d30cef..1c09104 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -12,6 +12,8 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/extension_file_util.h" #include "chrome/common/extensions/extension_error_reporter.h" +#include "chrome/common/notification_service.h" +#include "chrome/common/notification_type.h" #include "grit/chromium_strings.h" #include "third_party/skia/include/core/SkBitmap.h" #include "webkit/glue/image_decoder.h" @@ -252,6 +254,11 @@ void CrxInstaller::ReportFailureFromFileThread(const std::string& error) { void CrxInstaller::ReportFailureFromUIThread(const std::string& error) { DCHECK(MessageLoop::current() == ui_loop_); + NotificationService* service = NotificationService::current(); + service->Notify(NotificationType::NO_THEME_DETECTED, + Source<CrxInstaller>(this), + NotificationService::NoDetails()); + // This isn't really necessary, it is only used because unit tests expect to // see errors get reported via this interface. // |