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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.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/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 7d807c6b06885335e4f50ed4f1a235863486ab00..b807d165d427af4adfa289e4996536bd5c9da8d5 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -640,16 +640,14 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
"easyUnlockAllowed",
EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->IsAllowed());
values->SetString("easyUnlockLearnMoreURL", chrome::kEasyUnlockLearnMoreUrl);
- values->SetBoolean(
- "easyUnlockProximityDetectionAllowed",
- CommandLine::ForCurrentProcess()->HasSwitch(
- proximity_auth::switches::kEnableProximityDetection));
+ values->SetBoolean("easyUnlockProximityDetectionAllowed",
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ proximity_auth::switches::kEnableProximityDetection));
#if defined(OS_CHROMEOS)
- values->SetBoolean(
- "consumerManagementEnabled",
- CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kEnableConsumerManagement));
+ values->SetBoolean("consumerManagementEnabled",
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kEnableConsumerManagement));
RegisterTitle(values, "thirdPartyImeConfirmOverlay",
IDS_OPTIONS_SETTINGS_LANGUAGES_THIRD_PARTY_WARNING_TITLE);
@@ -660,7 +658,7 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
values->SetBoolean("allowAdvancedSettings", ShouldAllowAdvancedSettings());
values->SetBoolean("websiteSettingsManagerEnabled",
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableWebsiteSettingsManager));
values->SetBoolean("usingNewProfilesUI", switches::IsNewAvatarMenu());
@@ -878,7 +876,8 @@ void BrowserOptionsHandler::InitializeHandler() {
#if defined(OS_WIN)
ExtensionRegistry::Get(Profile::FromWebUI(web_ui()))->AddObserver(this);
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (!command_line.HasSwitch(switches::kUserDataDir)) {
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
base::Bind(&BrowserOptionsHandler::CheckAutoLaunch,

Powered by Google App Engine
This is Rietveld 408576698