| Index: chrome/browser/upgrade_detector.h
|
| diff --git a/chrome/browser/upgrade_detector.h b/chrome/browser/upgrade_detector.h
|
| index cd84b2736dbe1b643d339999c8ef4b2144e0bb2c..4675e57399106476bf60eb56e5bd34852cb21882 100644
|
| --- a/chrome/browser/upgrade_detector.h
|
| +++ b/chrome/browser/upgrade_detector.h
|
| @@ -46,6 +46,9 @@ class UpgradeDetector {
|
|
|
| static void RegisterPrefs(PrefRegistrySimple* registry);
|
|
|
| + // Triggers an upgrade check.
|
| + virtual void CheckForUpgrade() = 0;
|
| +
|
| // Whether the user should be notified about an upgrade.
|
| bool notify_upgrade() const { return notify_upgrade_; }
|
|
|
| @@ -60,6 +63,12 @@ class UpgradeDetector {
|
| return upgrade_available_ == UPGRADE_NEEDED_OUTDATED_INSTALL_NO_AU;
|
| }
|
|
|
| + // Whether elevation is needed to recover the upgrade channel (Omaha, and
|
| + // interaction between Omaha and Chrome).
|
| + bool is_elevation_needed_for_recovery() const {
|
| + return upgrade_available_ == UPGRADE_NEEDS_ELEVATION;
|
| + }
|
| +
|
| // Notifify this object that the user has acknowledged the critical update
|
| // so we don't need to complain about it for now.
|
| void acknowledge_critical_update() {
|
| @@ -114,6 +123,8 @@ class UpgradeDetector {
|
| // If no update to Chrome has been installed for more than the recommended
|
| // time AND auto-update is turned off.
|
| UPGRADE_NEEDED_OUTDATED_INSTALL_NO_AU,
|
| + // If upgrade recovery needs elevation.
|
| + UPGRADE_NEEDS_ELEVATION,
|
| } upgrade_available_;
|
|
|
| // Whether the user has acknowledged the critical update.
|
|
|