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

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

Issue 2770933007: [Sync] Replace ClearServerDataCallback with Closure. (Closed)
Patch Set: Created 3 years, 8 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/fake_sync_manager.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void FakeSyncEngine::DisableProtocolEventForwarding() {} 85 void FakeSyncEngine::DisableProtocolEventForwarding() {}
86 86
87 void FakeSyncEngine::EnableDirectoryTypeDebugInfoForwarding() {} 87 void FakeSyncEngine::EnableDirectoryTypeDebugInfoForwarding() {}
88 88
89 void FakeSyncEngine::DisableDirectoryTypeDebugInfoForwarding() {} 89 void FakeSyncEngine::DisableDirectoryTypeDebugInfoForwarding() {}
90 90
91 void FakeSyncEngine::set_fail_initial_download(bool should_fail) { 91 void FakeSyncEngine::set_fail_initial_download(bool should_fail) {
92 fail_initial_download_ = should_fail; 92 fail_initial_download_ = should_fail;
93 } 93 }
94 94
95 void FakeSyncEngine::ClearServerData( 95 void FakeSyncEngine::ClearServerData(const base::Closure& callback) {
96 const SyncManager::ClearServerDataCallback& callback) {
97 callback.Run(); 96 callback.Run();
98 } 97 }
99 98
100 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, 99 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch,
101 bool empty_jar, 100 bool empty_jar,
102 const base::Closure& callback) { 101 const base::Closure& callback) {
103 if (!callback.is_null()) { 102 if (!callback.is_null()) {
104 callback.Run(); 103 callback.Run();
105 } 104 }
106 } 105 }
107 106
108 } // namespace syncer 107 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698