OLD | NEW |
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 Loading... |
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 |
OLD | NEW |