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

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

Issue 1139083002: Added flag --enable-new-app-list-mixer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-mixer-priority-finch-test
Patch Set: Add histograms. Created 5 years, 7 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
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/search/mixer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Disables syncing of the app list independent of extensions.
25 const char kDisableSyncAppList[] = "disable-sync-app-list";
26
27 // If set, the app list will be centered and wide instead of tall. 24 // If set, the app list will be centered and wide instead of tall.
28 const char kEnableCenteredAppList[] = "enable-centered-app-list"; 25 const char kEnableCenteredAppList[] = "enable-centered-app-list";
29 26
30 // Enable/disable the experimental app list. If enabled, implies 27 // Enable/disable the experimental app list. If enabled, implies
31 // --enable-centered-app-list. 28 // --enable-centered-app-list.
32 const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; 29 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
33 const char kDisableExperimentalAppList[] = "disable-experimental-app-list"; 30 const char kDisableExperimentalAppList[] = "disable-experimental-app-list";
34 31
35 // Enables syncing of the app list independent of extensions. 32 // Enable/disable syncing of the app list independent of extensions.
36 const char kEnableSyncAppList[] = "enable-sync-app-list"; 33 const char kEnableSyncAppList[] = "enable-sync-app-list";
34 const char kDisableSyncAppList[] = "disable-sync-app-list";
37 35
38 // Enables launcher search provider api. 36 // Enables launcher search provider api.
39 const char kEnableLauncherSearchProviderApi[] = 37 const char kEnableLauncherSearchProviderApi[] =
40 "enable-launcher-search-provider-api"; 38 "enable-launcher-search-provider-api";
41 39
40 // Enable/disable the new "blended" algorithm in app_list::Mixer. This is just
41 // forcing the AppListMixer/Blended field trial.
42 const char kEnableNewAppListMixer[] = "enable-new-app-list-mixer";
43 const char kDisableNewAppListMixer[] = "disable-new-app-list-mixer";
44
42 #if defined(OS_MACOSX) 45 #if defined(OS_MACOSX)
43 // Enables use of the toolkit-views app list on Mac. 46 // Enables use of the toolkit-views app list on Mac.
44 const char kEnableMacViewsAppList[] = "enable-mac-views-app-list"; 47 const char kEnableMacViewsAppList[] = "enable-mac-views-app-list";
45 #endif 48 #endif
46 49
47 bool IsAppListSyncEnabled() { 50 bool IsAppListSyncEnabled() {
48 #if defined(OS_MACOSX) 51 #if defined(OS_MACOSX)
49 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList)) 52 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList))
50 return true; 53 return true;
51 54
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 #if defined(TOOLKIT_VIEWS) 124 #if defined(TOOLKIT_VIEWS)
122 return base::CommandLine::ForCurrentProcess()->HasSwitch( 125 return base::CommandLine::ForCurrentProcess()->HasSwitch(
123 kEnableMacViewsAppList); 126 kEnableMacViewsAppList);
124 #endif 127 #endif
125 return false; 128 return false;
126 } 129 }
127 #endif // defined(OS_MACOSX) 130 #endif // defined(OS_MACOSX)
128 131
129 } // namespace switches 132 } // namespace switches
130 } // namespace app_list 133 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/search/mixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698