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

Unified Diff: ui/app_list/app_list_switches.cc

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: rework Created 6 years, 9 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
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 77a72f032dd66480f2ae4a3e8846f437f7a06014..ca0f34c958df97d0d23092f6c28270980336ee5c 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -9,21 +9,24 @@
namespace app_list {
namespace switches {
-// If set, the experimental app list will be used.
-const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
-
// If set, folder will be disabled in app list UI.
const char kDisableFolderUI[] = "disable-app-list-folder-ui";
// If set, the voice search is disabled in app list UI.
const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
+// If set, the app info context menu item is available in the app list UI.
+const char kEnableAppInfo[] = "enable-app-list-app-info";
+
+// If set, the experimental app list will be used.
+const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
+
// If set, it will always listen to the audio locally and open the app-list
// when the hotword is recognized.
const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on";
-// If set, the app info context menu item is available in the app list UI.
-const char kEnableAppInfo[] = "enable-app-list-app-info";
+// If set, the app list will show the start page webui.
+const char kShowAppListStartPage[] = "show-app-list-start-page";
xiyuan 2014/03/14 17:00:54 Can we get rid of this and use just kEnableExperim
calamity 2014/05/07 06:11:52 Done.
// Folder UI is enabled by default.
bool IsFolderUIEnabled() {
@@ -57,5 +60,9 @@ bool IsExperimentalAppListEnabled() {
kEnableExperimentalAppList);
}
+bool IsStartPageWebUIEnabled() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(kShowAppListStartPage);
+}
+
} // namespace switches
} // namespace app_list

Powered by Google App Engine
This is Rietveld 408576698