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

Unified Diff: components/sync_driver/fake_sync_service.cc

Issue 1314903004: Sync: Refactoring DataTypeController to make the design shareable with USS datatypes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR comments Created 5 years, 3 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 371d735f9939f82c398238e12c71138ed8c41140..2635f37f97dd5dd40706980e4d6d8e555c2a6a4f 100644
--- a/components/sync_driver/fake_sync_service.cc
+++ b/components/sync_driver/fake_sync_service.cc
@@ -11,8 +11,9 @@
namespace sync_driver {
-FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
-}
+FakeSyncService::FakeSyncService()
+ : error_(GoogleServiceAuthError::NONE),
+ user_share_(make_scoped_ptr(new syncer::UserShare())) {}
FakeSyncService::~FakeSyncService() {
}
@@ -132,7 +133,7 @@ bool FakeSyncService::IsCryptographerReady(
}
syncer::UserShare* FakeSyncService::GetUserShare() const {
- return new syncer::UserShare();
+ return user_share_.get();
}
LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const {
« 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