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

Unified Diff: ash/common/system/update/update_observer.h

Issue 2558043006: ash: Use system tray mojo interface to show system update tray icon (Closed)
Patch Set: Make Flash updates yellow 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: ash/common/system/update/update_observer.h
diff --git a/ash/common/system/update/update_observer.h b/ash/common/system/update/update_observer.h
index 3912f0dd0429cd9715471ee49e38fe4a6d1b03f8..ceea5a42c99c4e48e967f212927227267db605bb 100644
--- a/ash/common/system/update/update_observer.h
+++ b/ash/common/system/update/update_observer.h
@@ -9,13 +9,17 @@
namespace ash {
-struct UpdateInfo;
+namespace mojom {
+enum class UpdateSeverity;
+}
class ASH_EXPORT UpdateObserver {
public:
- virtual ~UpdateObserver() {}
+ virtual void ShowUpdateIcon(mojom::UpdateSeverity severity,
msw 2016/12/09 23:41:51 It's somewhat odd that we have an observer pattern
James Cook 2016/12/12 18:15:12 I removed the observer. This revealed a problem --
+ bool factory_reset_required) = 0;
- virtual void OnUpdateRecommended(const UpdateInfo& info) = 0;
+ protected:
+ virtual ~UpdateObserver() {}
};
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698