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

Unified Diff: chrome/browser/upgrade_detector.h

Issue 325433002: Elevated install of recovery component (UI part). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/ui/views/toolbar/toolbar_view.cc ('k') | chrome/browser/upgrade_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_view.cc ('k') | chrome/browser/upgrade_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698