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

Side by Side Diff: components/sync/engine/fake_sync_engine.cc

Issue 2563423005: [Sync] Move ConfigureDataTypes logic into DataTypeManagerImpl. (Closed)
Patch Set: Address comments. Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/engine/fake_sync_engine.h" 5 #include "components/sync/engine/fake_sync_engine.h"
6 6
7 #include "components/sync/engine/activation_context.h" 7 #include "components/sync/engine/activation_context.h"
8 #include "components/sync/engine/sync_engine_host.h" 8 #include "components/sync/engine/sync_engine_host.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 19 matching lines...) Expand all
30 bool is_explicit) {} 30 bool is_explicit) {}
31 31
32 bool FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) { 32 bool FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) {
33 return false; 33 return false;
34 } 34 }
35 35
36 void FakeSyncEngine::StopSyncingForShutdown() {} 36 void FakeSyncEngine::StopSyncingForShutdown() {}
37 37
38 void FakeSyncEngine::Shutdown(ShutdownReason reason) {} 38 void FakeSyncEngine::Shutdown(ShutdownReason reason) {}
39 39
40 ModelTypeSet FakeSyncEngine::ConfigureDataTypes( 40 void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) {}
41 ConfigureReason reason,
42 const DataTypeConfigStateMap& config_state_map,
43 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task,
44 const base::Callback<void()>& retry_callback) {
45 return ModelTypeSet();
46 }
47 41
48 void FakeSyncEngine::EnableEncryptEverything() {} 42 void FakeSyncEngine::EnableEncryptEverything() {}
49 43
50 void FakeSyncEngine::ActivateDirectoryDataType( 44 void FakeSyncEngine::ActivateDirectoryDataType(
51 ModelType type, 45 ModelType type,
52 ModelSafeGroup group, 46 ModelSafeGroup group,
53 ChangeProcessor* change_processor) {} 47 ChangeProcessor* change_processor) {}
54 void FakeSyncEngine::DeactivateDirectoryDataType(ModelType type) {} 48 void FakeSyncEngine::DeactivateDirectoryDataType(ModelType type) {}
55 49
56 void FakeSyncEngine::ActivateNonBlockingDataType( 50 void FakeSyncEngine::ActivateNonBlockingDataType(
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 105
112 void FakeSyncEngine::ClearServerData( 106 void FakeSyncEngine::ClearServerData(
113 const SyncManager::ClearServerDataCallback& callback) { 107 const SyncManager::ClearServerDataCallback& callback) {
114 callback.Run(); 108 callback.Run();
115 } 109 }
116 110
117 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { 111 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) {
118 } 112 }
119 113
120 } // namespace syncer 114 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/model_type_configurer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698