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

Unified Diff: components/sync/model_impl/attachments/task_queue_unittest.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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_unittest.cc
diff --git a/components/sync/model_impl/attachments/task_queue_unittest.cc b/components/sync/model_impl/attachments/task_queue_unittest.cc
index 3780dd837b279c8f95b2aa3e15ec29daefc6fb80..634a5de2ba358b67e85fbf9283fc0587567820f7 100644
--- a/components/sync/model_impl/attachments/task_queue_unittest.cc
+++ b/components/sync/model_impl/attachments/task_queue_unittest.cc
@@ -24,9 +24,9 @@ const TimeDelta kZero;
class TaskQueueTest : public testing::Test {
protected:
TaskQueueTest() : weak_ptr_factory_(this) {
- queue_.reset(new TaskQueue<int>(
+ queue_ = base::MakeUnique<TaskQueue<int>>(
base::Bind(&TaskQueueTest::Process, weak_ptr_factory_.GetWeakPtr()),
- TimeDelta::FromMinutes(1), TimeDelta::FromMinutes(8)));
+ TimeDelta::FromMinutes(1), TimeDelta::FromMinutes(8));
}
void RunLoop() {
« no previous file with comments | « components/sync/model_impl/attachments/task_queue.h ('k') | components/sync/model_impl/model_type_store_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698