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

Unified Diff: components/sync/model_impl/attachments/task_queue.h

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: components/sync/model_impl/attachments/task_queue.h
diff --git a/components/sync/model_impl/attachments/task_queue.h b/components/sync/model_impl/attachments/task_queue.h
index afd602b654e60db0afe22b24dc06e00896c3eaae..2486c7baa657ca7e327028942d964021bf4885a7 100644
--- a/components/sync/model_impl/attachments/task_queue.h
+++ b/components/sync/model_impl/attachments/task_queue.h
@@ -187,7 +187,7 @@ TaskQueue<T>::TaskQueue(const HandleTaskCallback& callback,
backoff_entry_ = base::MakeUnique<net::BackoffEntry>(&backoff_policy_);
dispatch_closure_ =
base::Bind(&TaskQueue::Dispatch, weak_ptr_factory_.GetWeakPtr());
- backoff_timer_ = base::MakeUnique<base::Timer>(false, false);
+ backoff_timer_ = base::MakeUnique<base::OneShotTimer>();
}
template <typename T>
« no previous file with comments | « components/sync/engine/net/http_bridge.cc ('k') | content/browser/media/capture/web_contents_video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698