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

Unified Diff: components/browser_sync/profile_sync_service.cc

Issue 2538023002: [Sync] Pass a TaskRunner into SBHI/SBHC, not a thread or message loop. (Closed)
Patch Set: Remove thread check in destructor. Created 4 years 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: components/browser_sync/profile_sync_service.cc
diff --git a/components/browser_sync/profile_sync_service.cc b/components/browser_sync/profile_sync_service.cc
index 27f579955fad3ad8ffbd9e6c38ecf40808105b26..7cbe502b1b599459b0288eef0e0728695f71332d 100644
--- a/components/browser_sync/profile_sync_service.cc
+++ b/components/browser_sync/profile_sync_service.cc
@@ -543,7 +543,7 @@ void ProfileSyncService::InitializeBackend(bool delete_stale_data) {
url_request_context_, network_time_update_callback_);
backend_->Initialize(
- this, sync_thread_.get(), GetJsEventHandler(), sync_service_url_,
+ this, sync_thread_->task_runner(), GetJsEventHandler(), sync_service_url_,
local_device_->GetSyncUserAgent(), credentials, delete_stale_data,
enable_local_sync_backend, local_sync_backend_folder,
base::MakeUnique<syncer::SyncManagerFactory>(),
« no previous file with comments | « components/browser_sync/profile_sync_service.h ('k') | components/browser_sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698