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

Unified Diff: chrome/browser/ui/ash/system_tray_client.cc

Issue 2816253002: Display "Restart to update Adobe Flash Player" for Flash updates. (Closed)
Patch Set: Do not point to deleted memory Created 3 years, 8 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
Index: chrome/browser/ui/ash/system_tray_client.cc
diff --git a/chrome/browser/ui/ash/system_tray_client.cc b/chrome/browser/ui/ash/system_tray_client.cc
index 36110ab7d4a690f233851e200529737da540a584..812e9cae7bfaf50f891da61eaeb056cb67a896d6 100644
--- a/chrome/browser/ui/ash/system_tray_client.cc
+++ b/chrome/browser/ui/ash/system_tray_client.cc
@@ -389,7 +389,14 @@ void SystemTrayClient::HandleUpdateAvailable() {
if (flash_update_available_)
severity = std::max(severity, ash::mojom::UpdateSeverity::LOW);
- system_tray_->ShowUpdateIcon(severity, detector->is_factory_reset_required());
+ // Show a string specific to updating flash player if there is no system
+ // update.
+ ash::mojom::UpdateType update_type = detector->notify_upgrade()
+ ? ash::mojom::UpdateType::SYSTEM
+ : ash::mojom::UpdateType::FLASH;
+
+ system_tray_->ShowUpdateIcon(severity, detector->is_factory_reset_required(),
+ update_type);
}
////////////////////////////////////////////////////////////////////////////////
« ash/system/update/tray_update.cc ('K') | « ash/system/update/tray_update_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698