diff options
Diffstat (limited to 'base/cancelable_callback.h')
-rw-r--r-- | base/cancelable_callback.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/base/cancelable_callback.h b/base/cancelable_callback.h index 13cbd0c213..0034fddccd 100644 --- a/base/cancelable_callback.h +++ b/base/cancelable_callback.h @@ -26,18 +26,16 @@ // to the message loop, the intensive test runs, the message loop is run, // then the callback is cancelled. // -// RunLoop run_loop; -// // void TimeoutCallback(const std::string& timeout_message) { // FAIL() << timeout_message; -// run_loop.QuitWhenIdle(); +// MessageLoop::current()->QuitWhenIdle(); // } // // CancelableClosure timeout(base::Bind(&TimeoutCallback, "Test timed out.")); -// ThreadTaskRunnerHandle::Get()->PostDelayedTask(FROM_HERE, timeout.callback(), -// TimeDelta::FromSeconds(4)); +// MessageLoop::current()->PostDelayedTask(FROM_HERE, timeout.callback(), +// 4000) // 4 seconds to run. // RunIntensiveTest(); -// run_loop.Run(); +// MessageLoop::current()->Run(); // timeout.Cancel(); // Hopefully this is hit before the timeout callback runs. // |