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

Side by Side Diff: chrome/browser/upgrade_detector.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_H_ 5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_H_
6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_ 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "ui/base/idle/idle.h" 10 #include "ui/base/idle/idle.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Whether the user has acknowledged the critical update. 157 // Whether the user has acknowledged the critical update.
158 bool critical_update_acknowledged_; 158 bool critical_update_acknowledged_;
159 159
160 // Whether a factory reset is needed to complete an update. 160 // Whether a factory reset is needed to complete an update.
161 bool is_factory_reset_required_; 161 bool is_factory_reset_required_;
162 162
163 // A timer to check to see if we've been idle for long enough to show the 163 // A timer to check to see if we've been idle for long enough to show the
164 // critical warning. Should only be set if |upgrade_available_| is 164 // critical warning. Should only be set if |upgrade_available_| is
165 // UPGRADE_AVAILABLE_CRITICAL. 165 // UPGRADE_AVAILABLE_CRITICAL.
166 base::RepeatingTimer<UpgradeDetector> idle_check_timer_; 166 base::RepeatingTimer idle_check_timer_;
167 167
168 // The stage at which the annoyance level for upgrade notifications is at. 168 // The stage at which the annoyance level for upgrade notifications is at.
169 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; 169 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_;
170 170
171 // Whether we have waited long enough after detecting an upgrade (to see 171 // Whether we have waited long enough after detecting an upgrade (to see
172 // is we should start nagging about upgrading). 172 // is we should start nagging about upgrading).
173 bool notify_upgrade_; 173 bool notify_upgrade_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); 175 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector);
176 }; 176 };
177 177
178 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ 178 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/sync_setup_handler.cc ('k') | chrome/browser/upgrade_detector_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698