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

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

Issue 2751333007: [Sync] Try to fix race conditions in CookieJarMismatch. (Closed)
Patch Set: Created 3 years, 9 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698