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

Unified Diff: ui/app_list/app_list_switches.cc

Issue 819223002: 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 | « tools/set_default_handler/set_default_handler_main.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_switches.cc
diff --git a/ui/app_list/app_list_switches.cc b/ui/app_list/app_list_switches.cc
index 15722ba9a6a58d7ec0fb1f610dbe23fa21419d2b..deb52fa926dff3d91546b5beab3c40f09dc3e405 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -40,9 +40,10 @@ const char kEnableSyncAppList[] = "enable-sync-app-list";
bool IsAppListSyncEnabled() {
#if defined(TOOLKIT_VIEWS)
- return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList);
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kDisableSyncAppList);
#else
- return CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList);
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList);
#endif
}
@@ -66,17 +67,19 @@ bool IsVoiceSearchEnabled() {
bool IsAppInfoEnabled() {
#if defined(TOOLKIT_VIEWS)
- return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableAppInfo);
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableAppInfo);
#else
return false;
#endif
}
bool IsExperimentalAppListEnabled() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(kEnableExperimentalAppList))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kEnableExperimentalAppList))
return true;
- if (CommandLine::ForCurrentProcess()->HasSwitch(kDisableExperimentalAppList))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kDisableExperimentalAppList))
return false;
#if defined(OS_CHROMEOS)
@@ -87,18 +90,19 @@ bool IsExperimentalAppListEnabled() {
}
bool IsCenteredAppListEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) ||
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kEnableCenteredAppList) ||
IsExperimentalAppListEnabled();
}
bool ShouldNotDismissOnBlur() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
kDisableAppListDismissOnBlur);
}
bool IsDriveAppsInAppListEnabled() {
#if defined(OS_CHROMEOS)
- return !CommandLine::ForCurrentProcess()->HasSwitch(
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
kDisableDriveAppsInAppList);
#else
return false;
« no previous file with comments | « tools/set_default_handler/set_default_handler_main.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698