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

Unified Diff: chrome/browser/upgrade_detector.cc

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: Shot in the dark to try and prevent Mac crashes... 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
« no previous file with comments | « chrome/browser/upgrade_detector.h ('k') | chrome/browser/upgrade_detector_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/upgrade_detector.cc
diff --git a/chrome/browser/upgrade_detector.cc b/chrome/browser/upgrade_detector.cc
index f6b68bc8b875f1490545012cbdf62cd79eacc408..55327bd18485316ea8454d51db0968da1b11e4b2 100644
--- a/chrome/browser/upgrade_detector.cc
+++ b/chrome/browser/upgrade_detector.cc
@@ -35,6 +35,7 @@ bool UseTestingIntervals() {
void UpgradeDetector::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(prefs::kRestartLastSessionOnShutdown, false);
registry->RegisterBooleanPref(prefs::kWasRestarted, false);
+ registry->RegisterBooleanPref(prefs::kAttemptedToEnableAutoupdate, false);
}
int UpgradeDetector::GetIconResourceID(UpgradeNotificationIconType type) {
@@ -109,6 +110,13 @@ void UpgradeDetector::NotifyUpgradeRecommended() {
content::NotificationService::NoDetails());
break;
}
+ case UPGRADE_NEEDED_OUTDATED_INSTALL_NO_AU: {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_OUTDATED_INSTALL_NO_AU,
+ content::Source<UpgradeDetector>(this),
+ content::NotificationService::NoDetails());
+ break;
+ }
case UPGRADE_AVAILABLE_CRITICAL: {
int idle_timer = UseTestingIntervals() ?
kIdleRepeatingTimerWait :
« no previous file with comments | « chrome/browser/upgrade_detector.h ('k') | chrome/browser/upgrade_detector_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698