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