Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_sync_client.mm

Issue 2732333003: [Sync] ModelTypeStore factory shouldn't require valid PSS to function correctly (Closed)
Patch Set: Address comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/sync/ios_chrome_sync_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/sync/ios_chrome_sync_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698