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

Unified Diff: ui/app_list/app_list_switches.cc

Issue 135843004: Flag-flip of app-list-voice-search (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | « ui/app_list/app_list_switches.h ('k') | no next file » | 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 8244b4fa9cdf9afb8d2fb6ccdc12f8d32fd1c9b9..6c9afb30bc11b77487712aade745718277f4767c 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -12,12 +12,21 @@ namespace switches {
// If set, folder will be enabled in app list UI.
const char kEnableFolderUI[] = "enable-app-list-folder-ui";
-// If set, the voice search is enabled in app list UI.
-const char kEnableVoiceSearch[] = "enable-app-list-voice-search";
+// If set, the voice search is disabled in app list UI.
+const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
bool IsFolderUIEnabled() {
return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI);
}
+bool IsVoiceSearchEnabled() {
+ // Speech recognition in AppList is only for ChromeOS right now.
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch);
+#else
+ return false;
+#endif
+}
+
} // namespcae switches
} // namespace app_list
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698