OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/sync/ios_chrome_sync_client.h" | 5 #include "ios/chrome/browser/sync/ios_chrome_sync_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET, | 169 ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET, |
170 *base::CommandLine::ForCurrentProcess(), | 170 *base::CommandLine::ForCurrentProcess(), |
171 prefs::kSavingBrowserHistoryDisabled, sync_service_url, | 171 prefs::kSavingBrowserHistoryDisabled, sync_service_url, |
172 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 172 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
173 web::WebThread::GetTaskRunnerForThread(web::WebThread::DB), | 173 web::WebThread::GetTaskRunnerForThread(web::WebThread::DB), |
174 token_service, url_request_context_getter, web_data_service_, | 174 token_service, url_request_context_getter, web_data_service_, |
175 password_store_)); | 175 password_store_)); |
176 } | 176 } |
177 } | 177 } |
178 | 178 |
| 179 base::SequencedWorkerPool* IOSChromeSyncClient::GetBlockingPool() { |
| 180 return web::WebThread::GetBlockingPool(); |
| 181 } |
| 182 |
179 syncer::SyncService* IOSChromeSyncClient::GetSyncService() { | 183 syncer::SyncService* IOSChromeSyncClient::GetSyncService() { |
180 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 184 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
181 return IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state_); | 185 return IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state_); |
182 } | 186 } |
183 | 187 |
184 PrefService* IOSChromeSyncClient::GetPrefService() { | 188 PrefService* IOSChromeSyncClient::GetPrefService() { |
185 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 189 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
186 return browser_state_->GetPrefs(); | 190 return browser_state_->GetPrefs(); |
187 } | 191 } |
188 | 192 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state); | 425 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state); |
422 if (profile_sync_service != nullptr) { | 426 if (profile_sync_service != nullptr) { |
423 const syncer::DeviceInfoTracker* tracker = | 427 const syncer::DeviceInfoTracker* tracker = |
424 profile_sync_service->GetDeviceInfoTracker(); | 428 profile_sync_service->GetDeviceInfoTracker(); |
425 if (tracker != nullptr) { | 429 if (tracker != nullptr) { |
426 trackers->push_back(tracker); | 430 trackers->push_back(tracker); |
427 } | 431 } |
428 } | 432 } |
429 } | 433 } |
430 } | 434 } |
OLD | NEW |