Index: base/cancelable_callback.h |
diff --git a/base/cancelable_callback.h b/base/cancelable_callback.h |
index 0034fddccd3f218d45ffaac4734101550892ec08..13cbd0c2139e10755e863bd3402a4ff4459db0e3 100644 |
--- a/base/cancelable_callback.h |
+++ b/base/cancelable_callback.h |
@@ -26,16 +26,18 @@ |
// 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; |
-// MessageLoop::current()->QuitWhenIdle(); |
+// run_loop.QuitWhenIdle(); |
// } |
// |
// CancelableClosure timeout(base::Bind(&TimeoutCallback, "Test timed out.")); |
-// MessageLoop::current()->PostDelayedTask(FROM_HERE, timeout.callback(), |
-// 4000) // 4 seconds to run. |
+// ThreadTaskRunnerHandle::Get()->PostDelayedTask(FROM_HERE, timeout.callback(), |
+// TimeDelta::FromSeconds(4)); |
// RunIntensiveTest(); |
-// MessageLoop::current()->Run(); |
+// run_loop.Run(); |
// timeout.Cancel(); // Hopefully this is hit before the timeout callback runs. |
// |