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

Unified Diff: components/browser_sync/abstract_profile_sync_service_test.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
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/abstract_profile_sync_service_test.cc
diff --git a/components/browser_sync/abstract_profile_sync_service_test.cc b/components/browser_sync/abstract_profile_sync_service_test.cc
index 153962eb4c3e4378b5635166cb656d460309f1a3..4d82fe1b0a9b435eab8ae08a623aea70a6696d13 100644
--- a/components/browser_sync/abstract_profile_sync_service_test.cc
+++ b/components/browser_sync/abstract_profile_sync_service_test.cc
@@ -36,7 +36,6 @@ class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl {
SyncBackendHostForProfileSyncTest(
const base::FilePath& temp_dir,
syncer::SyncClient* sync_client,
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
invalidation::InvalidationService* invalidator,
const base::WeakPtr<syncer::SyncPrefs>& sync_prefs,
const base::Closure& callback);
@@ -69,14 +68,12 @@ class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl {
SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
const base::FilePath& temp_dir,
syncer::SyncClient* sync_client,
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
invalidation::InvalidationService* invalidator,
const base::WeakPtr<syncer::SyncPrefs>& sync_prefs,
const base::Closure& callback)
: SyncBackendHostImpl(
"dummy_debug_name",
sync_client,
- ui_thread,
invalidator,
sync_prefs,
temp_dir.Append(base::FilePath(FILE_PATH_LITERAL("test")))),
@@ -197,7 +194,6 @@ void AbstractProfileSyncServiceTest::CreateSyncService(
EXPECT_CALL(*components, CreateSyncBackendHost(_, _, _, _))
.WillOnce(Return(new SyncBackendHostForProfileSyncTest(
temp_dir_.GetPath(), sync_service_->GetSyncClient(),
- base::ThreadTaskRunnerHandle::Get(),
profile_sync_service_bundle_.fake_invalidation_service(),
sync_service_->sync_prefs()->AsWeakPtr(),
initialization_success_callback)));
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698