| 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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |