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

Unified Diff: components/sync_driver/fake_sync_service.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_service.h ('k') | components/sync_driver/frontend_data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/fake_sync_service.cc
diff --git a/components/sync_driver/fake_sync_service.cc b/components/sync_driver/fake_sync_service.cc
index d1966e64aa795dea2f5497af75f4bf331cb84595..25d2d9c2ed98979aaa391e45214450b79a1a4bdf 100644
--- a/components/sync_driver/fake_sync_service.cc
+++ b/components/sync_driver/fake_sync_service.cc
@@ -4,6 +4,7 @@
#include "components/sync_driver/fake_sync_service.h"
+#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "sync/internal_api/public/base_transaction.h"
#include "sync/internal_api/public/sessions/sync_session_snapshot.h"
@@ -13,7 +14,7 @@ namespace sync_driver {
FakeSyncService::FakeSyncService()
: error_(GoogleServiceAuthError::NONE),
- user_share_(make_scoped_ptr(new syncer::UserShare())) {}
+ user_share_(base::WrapUnique(new syncer::UserShare())) {}
FakeSyncService::~FakeSyncService() {
}
@@ -218,6 +219,6 @@ base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() {
}
void FakeSyncService::GetAllNodes(
- const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {}
+ const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
} // namespace sync_driver
« no previous file with comments | « components/sync_driver/fake_sync_service.h ('k') | components/sync_driver/frontend_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698