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

Unified Diff: ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc

Issue 2658743002: [Sync] Add ProfileSyncService::GetModelTypeStoreFactory. (Closed)
Patch Set: Fix iOS PSS factory. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc
diff --git a/ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc b/ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc
index 45b759c71e8af33ccf64210fb53bd5022060dd5a..ea0f45cd811944666e5abadc9c9156bc652c5e39 100644
--- a/ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc
+++ b/ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc
@@ -141,7 +141,11 @@ IOSChromeProfileSyncServiceFactory::BuildServiceInstanceFor(
init_params.url_request_context = browser_state->GetRequestContext();
init_params.debug_identifier = browser_state->GetDebugName();
init_params.channel = ::GetChannel();
- init_params.blocking_pool = web::WebThread::GetBlockingPool();
+ base::SequencedWorkerPool* blocking_pool = web::WebThread::GetBlockingPool();
+ init_params.blocking_task_runner =
+ blocking_pool->GetSequencedTaskRunnerWithShutdownBehavior(
+ blocking_pool->GetSequenceToken(),
+ base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params));
« no previous file with comments | « components/sync/model/model_type_store.h ('k') | ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698