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

Unified Diff: chrome/browser/sync/profile_sync_service_factory.cc

Issue 1422773004: [sync] Abstract most ProfileSyncService //chrome deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pss_chrome_signin_deps
Patch Set: Rebase Created 5 years, 1 month 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 | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_factory.cc
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
index 60b3f1db7524f5231ebb1ab38387c726ccbe1bd1..4f9e2339fc452736cfef59c9823159a4a00737c8 100644
--- a/chrome/browser/sync/profile_sync_service_factory.cc
+++ b/chrome/browser/sync/profile_sync_service_factory.cc
@@ -187,8 +187,15 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
scoped_ptr<browser_sync::ChromeSyncClient> sync_client(
new browser_sync::ChromeSyncClient(profile, sync_factory.Pass()));
ProfileSyncService* pss = new ProfileSyncService(
- sync_client.Pass(), profile, signin_wrapper.Pass(), token_service,
- behavior, base::Bind(&UpdateNetworkTime));
+ sync_client.Pass(), signin_wrapper.Pass(), token_service,
+ behavior, base::Bind(&UpdateNetworkTime), profile->GetPath(),
+ profile->GetRequestContext(), profile->GetDebugName(),
+ chrome::GetChannel(),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::DB),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE),
+ content::BrowserThread::GetBlockingPool());
pss->Initialize();
return pss;
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698