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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 1849563005: [Sync] Add cookie jar mismatch logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests again Created 4 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 | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/test/fake_sync_manager.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 model_type_registry_->RequestEmitDebugInfo(); 1026 model_type_registry_->RequestEmitDebugInfo();
1027 } 1027 }
1028 1028
1029 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) { 1029 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) {
1030 DCHECK(thread_checker_.CalledOnValidThread()); 1030 DCHECK(thread_checker_.CalledOnValidThread());
1031 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time()); 1031 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time());
1032 ClearParams params(callback); 1032 ClearParams params(callback);
1033 scheduler_->ScheduleClearServerData(params); 1033 scheduler_->ScheduleClearServerData(params);
1034 } 1034 }
1035 1035
1036 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch) {
1037 DCHECK(thread_checker_.CalledOnValidThread());
1038 session_context_->set_cookie_jar_mismatch(account_mismatch);
1039 }
1040
1036 } // namespace syncer 1041 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/test/fake_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698