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

Unified Diff: components/sync/tools/sync_listen_notifications.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/tools/sync_listen_notifications.cc
diff --git a/components/sync/tools/sync_listen_notifications.cc b/components/sync/tools/sync_listen_notifications.cc
index 7cbad69be5e6827129ed52d1bfac164d638fc671..3ea3de6344ac1776d053954972c4f12b1353e447 100644
--- a/components/sync/tools/sync_listen_notifications.cc
+++ b/components/sync/tools/sync_listen_notifications.cc
@@ -101,7 +101,7 @@ class MyTestURLRequestContextGetter : public net::TestURLRequestContextGetter {
// Construct |context_| lazily so it gets constructed on the right
// thread (the IO thread).
if (!context_)
- context_.reset(new MyTestURLRequestContext());
+ context_ = base::MakeUnique<MyTestURLRequestContext>();
return context_.get();
}
« no previous file with comments | « components/sync/tools/sync_client.cc ('k') | components/sync_bookmarks/bookmark_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698