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

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 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 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,
« no previous file with comments | « no previous file | chrome/browser/lifetime/application_lifetime.h » ('j') | chrome/browser/lifetime/application_lifetime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698