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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/upgrade_detector.h" 5 #include "chrome/browser/upgrade_detector.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 content::NotificationService::NoDetails()); 102 content::NotificationService::NoDetails());
103 103
104 switch (upgrade_available_) { 104 switch (upgrade_available_) {
105 case UPGRADE_NEEDED_OUTDATED_INSTALL: { 105 case UPGRADE_NEEDED_OUTDATED_INSTALL: {
106 content::NotificationService::current()->Notify( 106 content::NotificationService::current()->Notify(
107 chrome::NOTIFICATION_OUTDATED_INSTALL, 107 chrome::NOTIFICATION_OUTDATED_INSTALL,
108 content::Source<UpgradeDetector>(this), 108 content::Source<UpgradeDetector>(this),
109 content::NotificationService::NoDetails()); 109 content::NotificationService::NoDetails());
110 break; 110 break;
111 } 111 }
112 case UPGRADE_NEEDED_OUTDATED_INSTALL_NO_AU: {
113 content::NotificationService::current()->Notify(
114 chrome::NOTIFICATION_OUTDATED_INSTALL_NO_AU,
115 content::Source<UpgradeDetector>(this),
116 content::NotificationService::NoDetails());
117 break;
118 }
112 case UPGRADE_AVAILABLE_CRITICAL: { 119 case UPGRADE_AVAILABLE_CRITICAL: {
113 int idle_timer = UseTestingIntervals() ? 120 int idle_timer = UseTestingIntervals() ?
114 kIdleRepeatingTimerWait : 121 kIdleRepeatingTimerWait :
115 kIdleRepeatingTimerWait * 60; // To minutes. 122 kIdleRepeatingTimerWait * 60; // To minutes.
116 idle_check_timer_.Start(FROM_HERE, 123 idle_check_timer_.Start(FROM_HERE,
117 base::TimeDelta::FromSeconds(idle_timer), 124 base::TimeDelta::FromSeconds(idle_timer),
118 this, &UpgradeDetector::CheckIdle); 125 this, &UpgradeDetector::CheckIdle);
119 break; 126 break;
120 } 127 }
121 default: 128 default:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 break; 162 break;
156 case IDLE_STATE_ACTIVE: 163 case IDLE_STATE_ACTIVE:
157 case IDLE_STATE_UNKNOWN: 164 case IDLE_STATE_UNKNOWN:
158 break; 165 break;
159 default: 166 default:
160 NOTREACHED(); // Need to add any new value above (either providing 167 NOTREACHED(); // Need to add any new value above (either providing
161 // automatic restart or show notification to user). 168 // automatic restart or show notification to user).
162 break; 169 break;
163 } 170 }
164 } 171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698