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

Side by Side Diff: components/sync/driver/fake_sync_client.cc

Issue 2710623003: [sync] Clean up path generation for the local sync database. (Closed)
Patch Set: Fix non-windows bots. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « components/sync/driver/fake_sync_client.h ('k') | components/sync/driver/sync_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/fake_sync_client.h" 5 #include "components/sync/driver/fake_sync_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "components/sync/base/extensions_activity.h" 9 #include "components/sync/base/extensions_activity.h"
10 #include "components/sync/base/sync_prefs.h" 10 #include "components/sync/base/sync_prefs.h"
(...skipping 30 matching lines...) Expand all
41 void FakeSyncClient::Initialize() {} 41 void FakeSyncClient::Initialize() {}
42 42
43 SyncService* FakeSyncClient::GetSyncService() { 43 SyncService* FakeSyncClient::GetSyncService() {
44 return sync_service_.get(); 44 return sync_service_.get();
45 } 45 }
46 46
47 PrefService* FakeSyncClient::GetPrefService() { 47 PrefService* FakeSyncClient::GetPrefService() {
48 return &pref_service_; 48 return &pref_service_;
49 } 49 }
50 50
51 base::FilePath FakeSyncClient::GetLocalSyncBackendFolder() {
52 return base::FilePath();
53 }
54
51 bookmarks::BookmarkModel* FakeSyncClient::GetBookmarkModel() { 55 bookmarks::BookmarkModel* FakeSyncClient::GetBookmarkModel() {
52 return nullptr; 56 return nullptr;
53 } 57 }
54 58
55 favicon::FaviconService* FakeSyncClient::GetFaviconService() { 59 favicon::FaviconService* FakeSyncClient::GetFaviconService() {
56 return nullptr; 60 return nullptr;
57 } 61 }
58 62
59 history::HistoryService* FakeSyncClient::GetHistoryService() { 63 history::HistoryService* FakeSyncClient::GetHistoryService() {
60 return nullptr; 64 return nullptr;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 114
111 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() { 115 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() {
112 return factory_; 116 return factory_;
113 } 117 }
114 118
115 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) { 119 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) {
116 bridge_ = bridge; 120 bridge_ = bridge;
117 } 121 }
118 122
119 } // namespace syncer 123 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_client.h ('k') | components/sync/driver/sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698