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 c525686f20be3af3f2a86d6674026ca388944468..0e73f96e79442239e1d44dde5fc35be76b4d4ebd 100644 |
--- a/chrome/browser/component_updater/pepper_flash_component_installer.cc |
+++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc |
@@ -44,6 +44,7 @@ |
#include "ppapi/shared_impl/ppapi_permissions.h" |
#if defined(OS_CHROMEOS) |
+#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" |
@@ -73,8 +74,15 @@ void LogRegistrationResult(chromeos::DBusMethodCallStatus call_status, |
LOG(ERROR) << "Call to imageloader service failed."; |
return; |
} |
- if (!result) |
+ if (!result) { |
LOG(ERROR) << "Component flash registration failed"; |
+ return; |
+ } |
+ chromeos::SystemTrayDelegateChromeOS* tray = |
+ chromeos::SystemTrayDelegateChromeOS::Get(); |
+ if (tray) { |
+ tray->SetFlashUpdateAvailable(); |
waffles
2016/11/17 00:39:56
As an FYI, the updater uses a lot of CONTINUE_ON_S
Greg K
2016/11/30 19:30:29
Acknowledged.
|
+ } |
} |
void ImageLoaderRegistration(const std::string& version, |