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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_core.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
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_driver/glue/sync_backend_host_core.h" 5 #include "components/sync_driver/glue/sync_backend_host_core.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 778
779 void SyncBackendHostCore::DoClearServerData( 779 void SyncBackendHostCore::DoClearServerData(
780 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 780 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
781 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 781 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
782 const syncer::SyncManager::ClearServerDataCallback callback = 782 const syncer::SyncManager::ClearServerDataCallback callback =
783 base::Bind(&SyncBackendHostCore::ClearServerDataDone, 783 base::Bind(&SyncBackendHostCore::ClearServerDataDone,
784 weak_ptr_factory_.GetWeakPtr(), frontend_callback); 784 weak_ptr_factory_.GetWeakPtr(), frontend_callback);
785 sync_manager_->ClearServerData(callback); 785 sync_manager_->ClearServerData(callback);
786 } 786 }
787 787
788 void SyncBackendHostCore::DoOnCookieJarChanged(bool account_mismatch) {
789 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
790 sync_manager_->OnCookieJarChanged(account_mismatch);
791 }
792
788 void SyncBackendHostCore::ClearServerDataDone( 793 void SyncBackendHostCore::ClearServerDataDone(
789 const base::Closure& frontend_callback) { 794 const base::Closure& frontend_callback) {
790 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 795 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
791 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 796 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
792 frontend_callback); 797 frontend_callback);
793 } 798 }
794 799
795 800
796 } // namespace browser_sync 801 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_core.h ('k') | components/sync_driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698