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

Unified Diff: chrome/browser/upgrade_detector.h

Issue 211543008: Show a modified outdated upgrade Bubble for non-enterprise users without auto-update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review comments 1. Created 6 years, 9 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: chrome/browser/upgrade_detector.h
diff --git a/chrome/browser/upgrade_detector.h b/chrome/browser/upgrade_detector.h
index 9c1826e5700d57a61d112d8603bcb035de0dc0cb..cd84b2736dbe1b643d339999c8ef4b2144e0bb2c 100644
--- a/chrome/browser/upgrade_detector.h
+++ b/chrome/browser/upgrade_detector.h
@@ -54,6 +54,12 @@ class UpgradeDetector {
return upgrade_available_ == UPGRADE_NEEDED_OUTDATED_INSTALL;
}
+ // Whether the upgrade recommendation is due to Chrome being outdated AND
+ // auto-update is turned off.
+ bool is_outdated_install_no_au() const {
+ return upgrade_available_ == UPGRADE_NEEDED_OUTDATED_INSTALL_NO_AU;
+ }
+
// 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() {
@@ -105,6 +111,9 @@ class UpgradeDetector {
// If no update to Chrome has been installed for more than the recommended
// time.
UPGRADE_NEEDED_OUTDATED_INSTALL,
+ // 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,
} upgrade_available_;
// Whether the user has acknowledged the critical update.

Powered by Google App Engine
This is Rietveld 408576698