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

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

Issue 2624943002: [Sync] Move snapshot cache from SBHI to PSS. (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
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/sync_engine.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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void FakeSyncEngine::DeactivateNonBlockingDataType(ModelType type) {} 54 void FakeSyncEngine::DeactivateNonBlockingDataType(ModelType type) {}
55 55
56 UserShare* FakeSyncEngine::GetUserShare() const { 56 UserShare* FakeSyncEngine::GetUserShare() const {
57 return nullptr; 57 return nullptr;
58 } 58 }
59 59
60 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() { 60 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() {
61 return SyncEngine::Status(); 61 return SyncEngine::Status();
62 } 62 }
63 63
64 SyncCycleSnapshot FakeSyncEngine::GetLastCycleSnapshot() const {
65 return SyncCycleSnapshot();
66 }
67
68 bool FakeSyncEngine::HasUnsyncedItems() const { 64 bool FakeSyncEngine::HasUnsyncedItems() const {
69 return false; 65 return false;
70 } 66 }
71 67
72 bool FakeSyncEngine::IsNigoriEnabled() const { 68 bool FakeSyncEngine::IsNigoriEnabled() const {
73 return true; 69 return true;
74 } 70 }
75 71
76 PassphraseType FakeSyncEngine::GetPassphraseType() const { 72 PassphraseType FakeSyncEngine::GetPassphraseType() const {
77 return PassphraseType::IMPLICIT_PASSPHRASE; 73 return PassphraseType::IMPLICIT_PASSPHRASE;
(...skipping 27 matching lines...) Expand all
105 101
106 void FakeSyncEngine::ClearServerData( 102 void FakeSyncEngine::ClearServerData(
107 const SyncManager::ClearServerDataCallback& callback) { 103 const SyncManager::ClearServerDataCallback& callback) {
108 callback.Run(); 104 callback.Run();
109 } 105 }
110 106
111 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { 107 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) {
112 } 108 }
113 109
114 } // namespace syncer 110 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/sync_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698