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

Unified Diff: ash/system/chromeos/session/tray_session_length_limit.cc

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
« no previous file with comments | « ash/system/chromeos/session/tray_session_length_limit.h ('k') | ash/system/date/date_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/session/tray_session_length_limit.cc
diff --git a/ash/system/chromeos/session/tray_session_length_limit.cc b/ash/system/chromeos/session/tray_session_length_limit.cc
index e4beb9094e835ce474e204a0e099ab54c8275380..980e7a57358b9fdc09eadb9014cabe2bc2ff9fac 100644
--- a/ash/system/chromeos/session/tray_session_length_limit.cc
+++ b/ash/system/chromeos/session/tray_session_length_limit.cc
@@ -101,7 +101,7 @@ void TraySessionLengthLimit::UpdateState() {
limit_state_ = remaining_session_time_ <= expiring_soon_threshold ?
LIMIT_EXPIRING_SOON : LIMIT_SET;
if (!timer_)
- timer_.reset(new base::RepeatingTimer<TraySessionLengthLimit>);
+ timer_.reset(new base::RepeatingTimer);
if (!timer_->IsRunning()) {
timer_->Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(
« no previous file with comments | « ash/system/chromeos/session/tray_session_length_limit.h ('k') | ash/system/date/date_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698