OLD | NEW |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( |
96 const SyncManager::ClearServerDataCallback& callback) { | 96 const SyncManager::ClearServerDataCallback& callback) { |
97 callback.Run(); | 97 callback.Run(); |
98 } | 98 } |
99 | 99 |
100 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { | 100 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, |
| 101 bool empty_jar, |
| 102 const base::Closure& callback) { |
| 103 if (!callback.is_null()) { |
| 104 callback.Run(); |
| 105 } |
101 } | 106 } |
102 | 107 |
103 } // namespace syncer | 108 } // namespace syncer |
OLD | NEW |