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

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

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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 | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_unittest.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 0016b96500d10dcfd145c0e1e449efc7d5c6aef8..33bb0c675422cbe253b57b8b7264dde3887cb84c 100644
--- a/chrome/browser/sync/profile_sync_service_factory.cc
+++ b/chrome/browser/sync/profile_sync_service_factory.cc
@@ -107,8 +107,8 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
// once http://crbug.com/171406 has been fixed.
AboutSigninInternalsFactory::GetForProfile(profile);
- const GURL sync_service_url =
- ProfileSyncService::GetSyncServiceURL(*CommandLine::ForCurrentProcess());
+ const GURL sync_service_url = ProfileSyncService::GetSyncServiceURL(
+ *base::CommandLine::ForCurrentProcess());
scoped_ptr<SupervisedUserSigninManagerWrapper> signin_wrapper(
new SupervisedUserSigninManagerWrapper(profile, signin));
@@ -132,15 +132,9 @@ KeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
ProfileSyncService* pss = new ProfileSyncService(
scoped_ptr<ProfileSyncComponentsFactory>(
new ProfileSyncComponentsFactoryImpl(
- profile,
- CommandLine::ForCurrentProcess(),
- sync_service_url,
- token_service,
- url_request_context_getter)),
- profile,
- signin_wrapper.Pass(),
- token_service,
- behavior);
+ profile, base::CommandLine::ForCurrentProcess(), sync_service_url,
+ token_service, url_request_context_getter)),
+ profile, signin_wrapper.Pass(), token_service, behavior);
pss->factory()->RegisterDataTypes(pss);
pss->Initialize();
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698