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

Unified Diff: chrome/browser/component_updater/pepper_flash_component_installer.cc

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 years, 1 month 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
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,

Powered by Google App Engine
This is Rietveld 408576698