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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_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
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_impl.h" 5 #include "components/sync_driver/glue/sync_backend_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 } 846 }
847 847
848 void SyncBackendHostImpl::ClearServerData( 848 void SyncBackendHostImpl::ClearServerData(
849 const syncer::SyncManager::ClearServerDataCallback& callback) { 849 const syncer::SyncManager::ClearServerDataCallback& callback) {
850 DCHECK(ui_thread_->BelongsToCurrentThread()); 850 DCHECK(ui_thread_->BelongsToCurrentThread());
851 registrar_->sync_thread()->task_runner()->PostTask( 851 registrar_->sync_thread()->task_runner()->PostTask(
852 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData, 852 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData,
853 core_.get(), callback)); 853 core_.get(), callback));
854 } 854 }
855 855
856 void SyncBackendHostImpl::OnCookieJarChanged(bool account_mismatch) {
857 DCHECK(ui_thread_->BelongsToCurrentThread());
858 registrar_->sync_thread()->task_runner()->PostTask(
859 FROM_HERE, base::Bind(&SyncBackendHostCore::DoOnCookieJarChanged,
860 core_.get(), account_mismatch));
861 }
862
856 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop( 863 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop(
857 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 864 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
858 DCHECK(ui_thread_->BelongsToCurrentThread()); 865 DCHECK(ui_thread_->BelongsToCurrentThread());
859 frontend_callback.Run(); 866 frontend_callback.Run();
860 } 867 }
861 868
862 } // namespace browser_sync 869 } // namespace browser_sync
863 870
864 #undef SDVLOG 871 #undef SDVLOG
865 872
866 #undef SLOG 873 #undef SLOG
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_impl.h ('k') | components/sync_driver/glue/sync_backend_host_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698