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

Unified Diff: media/base/test_helpers.cc

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 8 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 | « extensions/browser/updater/request_queue_impl.h ('k') | net/base/network_throttle_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 2a0c3211293e6709d86de955fbdc2c015d16e075..0434863db99d6efbd2074bb2193133f3f507d1b9 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -98,7 +98,7 @@ void WaitableMessageLoopEvent::RunAndWaitForStatus(PipelineStatus expected) {
}
run_loop_.reset(new base::RunLoop());
- base::Timer timer(false, false);
+ base::OneShotTimer timer;
timer.Start(
FROM_HERE, timeout_,
base::Bind(&WaitableMessageLoopEvent::OnTimeout, base::Unretained(this)));
« no previous file with comments | « extensions/browser/updater/request_queue_impl.h ('k') | net/base/network_throttle_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698