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