Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: chrome/browser/extensions/crx_installer.cc

Issue 196016: Fix loading bubble not disappearing with corrupt theme image.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.cc
===================================================================
--- chrome/browser/extensions/crx_installer.cc (revision 25059)
+++ chrome/browser/extensions/crx_installer.cc (working copy)
@@ -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::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.
//
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698