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

Side by Side Diff: ui/app_list/app_list_switches.cc

Issue 1206163002: Remove chrome://flags/#enable-app-list, move kEnableAppList to app_list:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix include Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/app_list/app_list_switches.h" 5 #include "ui/app_list/app_list_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace app_list { 9 namespace app_list {
10 namespace switches { 10 namespace switches {
11 11
12 // Specifies the chrome-extension:// URL for the contents of an additional page 12 // Specifies the chrome-extension:// URL for the contents of an additional page
13 // added to the experimental app launcher. 13 // added to the experimental app launcher.
14 const char kCustomLauncherPage[] = "custom-launcher-page"; 14 const char kCustomLauncherPage[] = "custom-launcher-page";
15 15
16 // If set, the app list will not be dismissed when it loses focus. This is 16 // If set, the app list will not be dismissed when it loses focus. This is
17 // useful when testing the app list or a custom launcher page. It can still be 17 // useful when testing the app list or a custom launcher page. It can still be
18 // dismissed via the other methods (like the Esc key). 18 // dismissed via the other methods (like the Esc key).
19 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur"; 19 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur";
20 20
21 // If set, Drive apps will not be shown side-by-side with Chrome apps. 21 // If set, Drive apps will not be shown side-by-side with Chrome apps.
22 const char kDisableDriveAppsInAppList[] = "disable-drive-apps-in-app-list"; 22 const char kDisableDriveAppsInAppList[] = "disable-drive-apps-in-app-list";
23 23
24 // If set, the app list will be enabled as if enabled from CWS.
25 const char kEnableAppList[] = "enable-app-list";
26
24 // If set, the app list will be centered and wide instead of tall. 27 // If set, the app list will be centered and wide instead of tall.
25 const char kEnableCenteredAppList[] = "enable-centered-app-list"; 28 const char kEnableCenteredAppList[] = "enable-centered-app-list";
26 29
27 // Enable/disable the experimental app list. If enabled, implies 30 // Enable/disable the experimental app list. If enabled, implies
28 // --enable-centered-app-list. 31 // --enable-centered-app-list.
29 const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; 32 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
30 const char kDisableExperimentalAppList[] = "disable-experimental-app-list"; 33 const char kDisableExperimentalAppList[] = "disable-experimental-app-list";
31 34
32 // Enable/disable syncing of the app list independent of extensions. 35 // Enable/disable syncing of the app list independent of extensions.
33 const char kEnableSyncAppList[] = "enable-sync-app-list"; 36 const char kEnableSyncAppList[] = "enable-sync-app-list";
34 const char kDisableSyncAppList[] = "disable-sync-app-list"; 37 const char kDisableSyncAppList[] = "disable-sync-app-list";
35 38
36 // Disable drive search in app launcher. 39 // Disable drive search in app launcher.
37 const char kDisableDriveSearchInAppLauncher[] = 40 const char kDisableDriveSearchInAppLauncher[] =
38 "disable-drive-search-in-app-launcher"; 41 "disable-drive-search-in-app-launcher";
39 42
40 // Disable launcher search provider API. 43 // Disable launcher search provider API.
41 const char kDisableLauncherSearchProviderApi[] = 44 const char kDisableLauncherSearchProviderApi[] =
42 "disable-launcher-search-provider-api"; 45 "disable-launcher-search-provider-api";
43 46
44 // Enable/disable the new "blended" algorithm in app_list::Mixer. This is just 47 // Enable/disable the new "blended" algorithm in app_list::Mixer. This is just
45 // forcing the AppListMixer/Blended field trial. 48 // forcing the AppListMixer/Blended field trial.
46 const char kEnableNewAppListMixer[] = "enable-new-app-list-mixer"; 49 const char kEnableNewAppListMixer[] = "enable-new-app-list-mixer";
47 const char kDisableNewAppListMixer[] = "disable-new-app-list-mixer"; 50 const char kDisableNewAppListMixer[] = "disable-new-app-list-mixer";
48 51
52 // If set, the app list will forget it has been installed on startup. Note this
53 // doesn't prevent the app list from running, it just makes Chrome think the app
54 // list hasn't been enabled (as in kEnableAppList) yet.
55 const char kResetAppListInstallState[] = "reset-app-list-install-state";
56
49 #if defined(OS_MACOSX) 57 #if defined(OS_MACOSX)
50 // Enables use of the toolkit-views app list on Mac. 58 // Enables use of the toolkit-views app list on Mac.
51 const char kEnableMacViewsAppList[] = "enable-mac-views-app-list"; 59 const char kEnableMacViewsAppList[] = "enable-mac-views-app-list";
52 #endif 60 #endif
53 61
54 bool IsAppListSyncEnabled() { 62 bool IsAppListSyncEnabled() {
55 #if defined(OS_MACOSX) 63 #if defined(OS_MACOSX)
56 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList)) 64 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList))
57 return true; 65 return true;
58 66
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #if defined(TOOLKIT_VIEWS) 145 #if defined(TOOLKIT_VIEWS)
138 return base::CommandLine::ForCurrentProcess()->HasSwitch( 146 return base::CommandLine::ForCurrentProcess()->HasSwitch(
139 kEnableMacViewsAppList); 147 kEnableMacViewsAppList);
140 #endif 148 #endif
141 return false; 149 return false;
142 } 150 }
143 #endif // defined(OS_MACOSX) 151 #endif // defined(OS_MACOSX)
144 152
145 } // namespace switches 153 } // namespace switches
146 } // namespace app_list 154 } // namespace app_list
OLDNEW
« chrome/browser/about_flags.cc ('K') | « 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