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

Unified Diff: components/sync_driver/fake_sync_client.cc

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 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 | « components/sync_driver/fake_sync_client.h ('k') | components/sync_driver/fake_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/fake_sync_client.cc
diff --git a/components/sync_driver/fake_sync_client.cc b/components/sync_driver/fake_sync_client.cc
index f651a5240176f3e7d89ed516eb2043390faa10ea..82fccb15cd46b76fe3945c4421989f54ed00f5a2 100644
--- a/components/sync_driver/fake_sync_client.cc
+++ b/components/sync_driver/fake_sync_client.cc
@@ -5,6 +5,7 @@
#include "components/sync_driver/fake_sync_client.h"
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "components/sync_driver/fake_sync_service.h"
#include "sync/util/extensions_activity.h"
@@ -20,11 +21,11 @@ void DummyRegisterPlatformTypesCallback(SyncService* sync_service,
FakeSyncClient::FakeSyncClient()
: factory_(nullptr),
- sync_service_(make_scoped_ptr(new FakeSyncService())) {}
+ sync_service_(base::WrapUnique(new FakeSyncService())) {}
FakeSyncClient::FakeSyncClient(SyncApiComponentFactory* factory)
: factory_(factory),
- sync_service_(make_scoped_ptr(new FakeSyncService())) {}
+ sync_service_(base::WrapUnique(new FakeSyncService())) {}
FakeSyncClient::~FakeSyncClient() {}
« no previous file with comments | « components/sync_driver/fake_sync_client.h ('k') | components/sync_driver/fake_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698