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

Side by Side Diff: components/sync_driver/fake_sync_service.cc

Issue 1418513005: [sync] Set up notification-free infra for triggering local sync refresh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 1 month 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/values.h" 7 #include "base/values.h"
8 #include "sync/internal_api/public/base_transaction.h" 8 #include "sync/internal_api/public/base_transaction.h"
9 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 9 #include "sync/internal_api/public/sessions/sync_session_snapshot.h"
10 #include "sync/internal_api/public/user_share.h" 10 #include "sync/internal_api/public/user_share.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 void FakeSyncService::TriggerRefresh(const syncer::ModelTypeSet& types) {}
34
33 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { 35 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
34 return syncer::ModelTypeSet(); 36 return syncer::ModelTypeSet();
35 } 37 }
36 38
37 SyncClient* FakeSyncService::GetSyncClient() const { 39 SyncClient* FakeSyncService::GetSyncClient() const {
38 return nullptr; 40 return nullptr;
39 } 41 }
40 42
41 void FakeSyncService::AddObserver(SyncServiceObserver* observer) { 43 void FakeSyncService::AddObserver(SyncServiceObserver* observer) {
42 } 44 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 syncer::TypeDebugInfoObserver* observer) {} 215 syncer::TypeDebugInfoObserver* observer) {}
214 216
215 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { 217 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() {
216 return base::WeakPtr<syncer::JsController>(); 218 return base::WeakPtr<syncer::JsController>();
217 } 219 }
218 220
219 void FakeSyncService::GetAllNodes( 221 void FakeSyncService::GetAllNodes(
220 const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {} 222 const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {}
221 223
222 } // namespace sync_driver 224 } // namespace sync_driver
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