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

Unified Diff: views/repeat_controller.cc

Issue 7812036: Update base/timer.h code to pass through Location from call sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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: views/repeat_controller.cc
diff --git a/views/repeat_controller.cc b/views/repeat_controller.cc
index bb708524cd6680f47d1013da6f829ab70996a191..84066d6d69f05a86fea811f5759fb9e42c27befc 100644
--- a/views/repeat_controller.cc
+++ b/views/repeat_controller.cc
@@ -26,7 +26,7 @@ RepeatController::~RepeatController() {
void RepeatController::Start() {
// The first timer is slightly longer than subsequent repeats.
timer_.Start(TimeDelta::FromMilliseconds(kInitialRepeatDelay), this,
- &RepeatController::Run);
+ &RepeatController::Run, FROM_HERE);
}
void RepeatController::Stop() {
@@ -38,7 +38,7 @@ void RepeatController::Stop() {
void RepeatController::Run() {
timer_.Start(TimeDelta::FromMilliseconds(kRepeatDelay), this,
- &RepeatController::Run);
+ &RepeatController::Run, FROM_HERE);
callback_->Run();
}

Powered by Google App Engine
This is Rietveld 408576698