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

Unified Diff: chrome/browser/sync/profile_sync_service.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
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index d11d9b9dcb6c916c7870281eccac95e6d2984ef5..b39380e3f21ba1de52686c2953e1ceaf183d1929 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -217,7 +217,8 @@ ProfileSyncService::ProfileSyncService(
factory_(factory.Pass()),
profile_(profile),
sync_prefs_(profile_->GetPrefs()),
- sync_service_url_(GetSyncServiceURL(*CommandLine::ForCurrentProcess())),
+ sync_service_url_(
+ GetSyncServiceURL(*base::CommandLine::ForCurrentProcess())),
is_first_time_sync_configure_(false),
backend_initialized_(false),
sync_disabled_by_admin_(false),
@@ -2467,7 +2468,8 @@ void ProfileSyncService::SyncEvent(SyncEventCodes code) {
bool ProfileSyncService::IsSyncEnabled() {
// We have switches::kEnableSync just in case we need to change back to
// sync-disabled-by-default on a platform.
- return !CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableSync);
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableSync);
}
bool ProfileSyncService::IsManaged() const {

Powered by Google App Engine
This is Rietveld 408576698