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

Unified Diff: ash/system/tray/system_tray_delegate.h

Issue 614363002: Added Aura notification that relaunch and powerwash is required in case of downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes to StstemTrayDelegateWin. Created 6 years, 3 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: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 4df2f70452f6576632d8df5c2b866bf3a2cf7272..a1f298a3975a86f089d13e1882f0665c0d6dd3cd 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -75,6 +75,21 @@ struct ASH_EXPORT IMEInfo {
base::string16 short_name;
};
+struct ASH_EXPORT UpdateInfo {
+ enum UpdateSeverity {
+ UPDATE_NORMAL,
+ UPDATE_LOW_GREEN,
+ UPDATE_HIGH_ORANGE,
+ UPDATE_SEVERE_RED,
+ };
+
+ UpdateInfo();
+ ~UpdateInfo();
+
+ UpdateSeverity severity;
+ bool is_factory_reset_required;
+};
+
typedef std::vector<IMEInfo> IMEInfoList;
class VolumeControlDelegate;
@@ -121,8 +136,9 @@ class ASH_EXPORT SystemTrayDelegate {
// Returns true if the current user is supervised.
virtual bool IsUserSupervised() const = 0;
- // Returns whether a system upgrade is available.
- virtual bool SystemShouldUpgrade() const = 0;
+ // Returns whether a system upgrade is available. Fills |info| structure if
+ // it's not NULL.
+ virtual bool SystemShouldUpgrade(UpdateInfo* info) const = 0;
stevenjb 2014/10/01 22:26:44 Looking at the chrome implementation, it looks lik
ygorshenin1 2014/10/02 14:21:35 I renamed the method to GetSystemUpdateInfo(), but
stevenjb 2014/10/02 15:33:55 Sorry, that was some intermediate confusion on my
// Returns the desired hour clock type.
virtual base::HourClockType GetHourClockType() const = 0;

Powered by Google App Engine
This is Rietveld 408576698