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 "chrome/browser/sync/glue/sync_backend_host_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 } | 865 } |
866 | 866 |
867 void SyncBackendHostImpl::RefreshTypesForTest(syncer::ModelTypeSet types) { | 867 void SyncBackendHostImpl::RefreshTypesForTest(syncer::ModelTypeSet types) { |
868 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 868 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
869 | 869 |
870 registrar_->sync_thread()->task_runner()->PostTask( | 870 registrar_->sync_thread()->task_runner()->PostTask( |
871 FROM_HERE, | 871 FROM_HERE, |
872 base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_.get(), types)); | 872 base::Bind(&SyncBackendHostCore::DoRefreshTypes, core_.get(), types)); |
873 } | 873 } |
874 | 874 |
| 875 void SyncBackendHostImpl::ClearServerData( |
| 876 const syncer::SyncManager::ClearServerDataCallback& callback) { |
| 877 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 878 registrar_->sync_thread()->task_runner()->PostTask( |
| 879 FROM_HERE, base::Bind(&SyncBackendHostCore::DoClearServerData, |
| 880 core_.get(), callback)); |
| 881 } |
| 882 |
| 883 void SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop( |
| 884 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { |
| 885 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 886 frontend_callback.Run(); |
| 887 } |
| 888 |
875 } // namespace browser_sync | 889 } // namespace browser_sync |
876 | 890 |
877 #undef SDVLOG | 891 #undef SDVLOG |
878 | 892 |
879 #undef SLOG | 893 #undef SLOG |
OLD | NEW |