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

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

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Remove ifdefs around include. Created 4 years 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_service.h ('k') | components/sync/driver/sync_service.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_service.h" 5 #include "components/sync/driver/fake_sync_service.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "components/sync/driver/data_type_controller.h" 9 #include "components/sync/driver/data_type_controller.h"
10 #include "components/sync/syncable/base_transaction.h" 10 #include "components/sync/syncable/base_transaction.h"
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 bool FakeSyncService::IsSyncAllowed() const { 25 bool FakeSyncService::IsSyncAllowed() const {
26 return false; 26 return false;
27 } 27 }
28 28
29 bool FakeSyncService::IsSyncActive() const { 29 bool FakeSyncService::IsSyncActive() const {
30 return false; 30 return false;
31 } 31 }
32 32
33 bool FakeSyncService::IsLocalSyncEnabled() const {
34 return false;
35 }
36
33 void FakeSyncService::TriggerRefresh(const ModelTypeSet& types) {} 37 void FakeSyncService::TriggerRefresh(const ModelTypeSet& types) {}
34 38
35 ModelTypeSet FakeSyncService::GetActiveDataTypes() const { 39 ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
36 return ModelTypeSet(); 40 return ModelTypeSet();
37 } 41 }
38 42
39 SyncClient* FakeSyncService::GetSyncClient() const { 43 SyncClient* FakeSyncService::GetSyncClient() const {
40 return nullptr; 44 return nullptr;
41 } 45 }
42 46
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 TypeDebugInfoObserver* observer) {} 208 TypeDebugInfoObserver* observer) {}
205 209
206 base::WeakPtr<JsController> FakeSyncService::GetJsController() { 210 base::WeakPtr<JsController> FakeSyncService::GetJsController() {
207 return base::WeakPtr<JsController>(); 211 return base::WeakPtr<JsController>();
208 } 212 }
209 213
210 void FakeSyncService::GetAllNodes( 214 void FakeSyncService::GetAllNodes(
211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} 215 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
212 216
213 } // namespace syncer 217 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_service.h ('k') | components/sync/driver/sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698