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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/system/automatic_reboot_manager.h
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager.h b/chrome/browser/chromeos/system/automatic_reboot_manager.h
index 2dbc98ee83861b899e853c44c5a30a44b5dfaa99..6f0391383b21a56f64736c8fe853aa73be8e0920 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager.h
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager.h
@@ -148,8 +148,7 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
// Fires when the user has been idle on the login screen for a set amount of
// time.
- scoped_ptr<base::OneShotTimer<AutomaticRebootManager> >
- login_screen_idle_timer_;
+ scoped_ptr<base::OneShotTimer> login_screen_idle_timer_;
// The time at which the device was booted, in |clock_| ticks.
bool have_boot_time_;
@@ -167,8 +166,8 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
bool reboot_requested_;
// Timers that start and end the grace period.
- scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_start_timer_;
- scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_end_timer_;
+ scoped_ptr<base::OneShotTimer> grace_start_timer_;
+ scoped_ptr<base::OneShotTimer> grace_end_timer_;
base::ObserverList<AutomaticRebootManagerObserver, true> observers_;
« no previous file with comments | « chrome/browser/chromeos/session_length_limiter.cc ('k') | chrome/browser/chromeos/system/automatic_reboot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698