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

Unified Diff: chrome/browser/upgrade_observer.h

Issue 2925973002: Migrate upgrade notifications to observer (Closed)
Patch Set: Add DISALLOW_COPY_AND_ASSIGN Created 3 years, 6 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 | « chrome/browser/upgrade_detector_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/upgrade_observer.h
diff --git a/chrome/browser/upgrade_observer.h b/chrome/browser/upgrade_observer.h
index 51af04f44be214733f080648c818bbe08ae44bef..4dd8b0abf3fa1621fbd3c059e055144eb6171029 100644
--- a/chrome/browser/upgrade_observer.h
+++ b/chrome/browser/upgrade_observer.h
@@ -11,7 +11,24 @@ class UpgradeObserver {
public:
// Triggered when a software update is available, but downloading requires
// user's agreement as current connection is cellular.
- virtual void OnUpdateOverCellularAvailable() = 0;
+ virtual void OnUpdateOverCellularAvailable() {}
+
+ // Triggered when Chrome believes an update has been installed and available
+ // for long enough with the user shutting down to let it take effect. See
+ // upgrade_detector.cc for details on how long it waits. No details are
+ // expected.
+ virtual void OnUpgradeRecommended() {}
+
+ // Triggered when a critical update has been installed. No details are
+ // expected.
+ virtual void OnCriticalUpgradeInstalled() {}
+
+ // Triggered when the current install is outdated. No details are expected.
+ virtual void OnOutdatedInstall() {}
+
+ // Triggered when the current install is outdated and auto-update (AU) is
+ // disabled. No details are expected.
+ virtual void OnOutdatedInstallNoAutoUpdate() {}
protected:
virtual ~UpgradeObserver() {}
« no previous file with comments | « chrome/browser/upgrade_detector_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698