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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.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
Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
index 0e176386b86addb7791511f6307d425cc783b767..945ba542bf10969a43dddbe0f7a091d311423e7f 100644
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
@@ -74,7 +74,7 @@ void DeadlineExceeded(base::Closure quit_closure) {
}
void RunCurrentLoopWithDeadline() {
- base::Timer deadline(false, false);
+ base::OneShotTimer deadline;
deadline.Start(
FROM_HERE, TestTimeouts::action_max_timeout(),
base::Bind(&DeadlineExceeded,
« no previous file with comments | « components/sync/model_impl/attachments/task_queue.h ('k') | extensions/browser/api/cast_channel/cast_channel_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698