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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_core.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_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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 776
777 void SyncBackendHostCore::DoClearServerData( 777 void SyncBackendHostCore::DoClearServerData(
778 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 778 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
779 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 779 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
780 const syncer::SyncManager::ClearServerDataCallback callback = 780 const syncer::SyncManager::ClearServerDataCallback callback =
781 base::Bind(&SyncBackendHostCore::ClearServerDataDone, 781 base::Bind(&SyncBackendHostCore::ClearServerDataDone,
782 weak_ptr_factory_.GetWeakPtr(), frontend_callback); 782 weak_ptr_factory_.GetWeakPtr(), frontend_callback);
783 sync_manager_->ClearServerData(callback); 783 sync_manager_->ClearServerData(callback);
784 } 784 }
785 785
786 void SyncBackendHostCore::DoOnCookieJarChanged(bool account_mismatch) { 786 void SyncBackendHostCore::DoOnCookieJarChanged(bool account_mismatch,
787 bool empty_jar) {
787 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 788 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
788 sync_manager_->OnCookieJarChanged(account_mismatch); 789 sync_manager_->OnCookieJarChanged(account_mismatch, empty_jar);
789 } 790 }
790 791
791 void SyncBackendHostCore::ClearServerDataDone( 792 void SyncBackendHostCore::ClearServerDataDone(
792 const base::Closure& frontend_callback) { 793 const base::Closure& frontend_callback) {
793 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 794 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
794 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 795 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
795 frontend_callback); 796 frontend_callback);
796 } 797 }
797 798
798 799
799 } // namespace browser_sync 800 } // 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