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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_impl.cc

Issue 1991973002: [Sync] Add histograms for cookie jar state on Sessions commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 7 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 <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 849 }
850 850
851 void SyncBackendHostImpl::ClearServerData( 851 void SyncBackendHostImpl::ClearServerData(
852 const syncer::SyncManager::ClearServerDataCallback& callback) { 852 const syncer::SyncManager::ClearServerDataCallback& callback) {
853 DCHECK(ui_thread_->BelongsToCurrentThread()); 853 DCHECK(ui_thread_->BelongsToCurrentThread());
854 registrar_->sync_thread()->task_runner()->PostTask( 854 registrar_->sync_thread()->task_runner()->PostTask(
855 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData, 855 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData,
856 core_.get(), callback)); 856 core_.get(), callback));
857 } 857 }
858 858
859 void SyncBackendHostImpl::OnCookieJarChanged(bool account_mismatch) { 859 void SyncBackendHostImpl::OnCookieJarChanged(bool account_mismatch,
860 bool empty_jar) {
860 DCHECK(ui_thread_->BelongsToCurrentThread()); 861 DCHECK(ui_thread_->BelongsToCurrentThread());
861 registrar_->sync_thread()->task_runner()->PostTask( 862 registrar_->sync_thread()->task_runner()->PostTask(
862 FROM_HERE, base::Bind(&SyncBackendHostCore::DoOnCookieJarChanged, 863 FROM_HERE, base::Bind(&SyncBackendHostCore::DoOnCookieJarChanged,
863 core_.get(), account_mismatch)); 864 core_.get(), account_mismatch, empty_jar));
864 } 865 }
865 866
866 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop( 867 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop(
867 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 868 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
868 DCHECK(ui_thread_->BelongsToCurrentThread()); 869 DCHECK(ui_thread_->BelongsToCurrentThread());
869 frontend_callback.Run(); 870 frontend_callback.Run();
870 } 871 }
871 872
872 } // namespace browser_sync 873 } // namespace browser_sync
873 874
874 #undef SDVLOG 875 #undef SDVLOG
875 876
876 #undef SLOG 877 #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