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

Unified Diff: ash/system/update/tray_update.h

Issue 2882933002: Add update available icon in system tray (Closed)
Patch Set: Add file to BUILD.gn Created 3 years, 7 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
« no previous file with comments | « ash/system/tray/system_tray_controller.cc ('k') | ash/system/update/tray_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/update/tray_update.h
diff --git a/ash/system/update/tray_update.h b/ash/system/update/tray_update.h
index 6d3a9c001ed08bafebe8d7d6e15af165e262e8c6..ca7f06f578f66bcf998bf940f8d01ee6ec9f8a29 100644
--- a/ash/system/update/tray_update.h
+++ b/ash/system/update/tray_update.h
@@ -38,6 +38,11 @@ class ASH_EXPORT TrayUpdate : public TrayImageItem {
bool factory_reset_required,
mojom::UpdateType update_type);
+ // Shows an icon in the system tray indicating that a software update is
+ // available but user's agreement is required as current connection is
+ // cellular. Once shown the icon persists until reboot.
+ void ShowUpdateOverCellularAvailableIcon();
+
private:
FRIEND_TEST_ALL_PREFIXES(TrayUpdateTest, VisibilityAfterUpdate);
FRIEND_TEST_ALL_PREFIXES(TrayUpdateTest, VisibilityAfterFlashUpdate);
@@ -60,6 +65,7 @@ class ASH_EXPORT TrayUpdate : public TrayImageItem {
static mojom::UpdateSeverity severity_;
static bool factory_reset_required_;
static mojom::UpdateType update_type_;
+ static bool update_over_cellular_available_;
DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
};
« no previous file with comments | « ash/system/tray/system_tray_controller.cc ('k') | ash/system/update/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698