Index: chrome/browser/component_updater/pepper_flash_component_installer.cc |
diff --git a/chrome/browser/component_updater/pepper_flash_component_installer.cc b/chrome/browser/component_updater/pepper_flash_component_installer.cc |
index 77e261784161be9dd84eaa1a1d06fabb8090c10f..3cb86a3c474ac1a97645c61189288d37ab74c240 100644 |
--- a/chrome/browser/component_updater/pepper_flash_component_installer.cc |
+++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc |
@@ -46,6 +46,7 @@ |
#if defined(OS_CHROMEOS) |
#include "base/feature_list.h" |
+#include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
#include "chromeos/dbus/dbus_method_call_status.h" |
#include "chromeos/dbus/dbus_thread_manager.h" |
#include "chromeos/dbus/image_loader_client.h" |
@@ -80,12 +81,20 @@ const uint8_t kSha2Hash[] = {0xc8, 0xce, 0x99, 0xba, 0xce, 0x89, 0xf8, 0x20, |
#if defined(OS_CHROMEOS) |
void LogRegistrationResult(chromeos::DBusMethodCallStatus call_status, |
bool result) { |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
if (call_status != chromeos::DBUS_METHOD_CALL_SUCCESS) { |
LOG(ERROR) << "Call to imageloader service failed."; |
return; |
} |
- if (!result) |
+ if (!result) { |
LOG(ERROR) << "Component flash registration failed"; |
+ return; |
+ } |
+ chromeos::SystemTrayDelegateChromeOS* tray = |
+ chromeos::SystemTrayDelegateChromeOS::instance(); |
+ if (tray) { |
+ tray->SetFlashUpdateAvailable(); |
+ } |
} |
void ImageLoaderRegistration(const std::string& version, |