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

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

Issue 1136363003: Remove AppListMixer field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-mixer-priority-finch-test
Patch Set: Rebase. Created 4 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 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 namespace app_list { 10 namespace app_list {
(...skipping 22 matching lines...) Expand all
33 // Enable/disable syncing of the app list independent of extensions. 33 // Enable/disable syncing of the app list independent of extensions.
34 const char kEnableSyncAppList[] = "enable-sync-app-list"; 34 const char kEnableSyncAppList[] = "enable-sync-app-list";
35 const char kDisableSyncAppList[] = "disable-sync-app-list"; 35 const char kDisableSyncAppList[] = "disable-sync-app-list";
36 36
37 // Enable/disable drive search in chrome launcher. 37 // Enable/disable drive search in chrome launcher.
38 const char kEnableDriveSearchInChromeLauncher[] = 38 const char kEnableDriveSearchInChromeLauncher[] =
39 "enable-drive-search-in-app-launcher"; 39 "enable-drive-search-in-app-launcher";
40 const char kDisableDriveSearchInChromeLauncher[] = 40 const char kDisableDriveSearchInChromeLauncher[] =
41 "disable-drive-search-in-app-launcher"; 41 "disable-drive-search-in-app-launcher";
42 42
43 // Enable/disable the new "blended" algorithm in app_list::Mixer. This is just
44 // forcing the AppListMixer/Blended field trial.
45 const char kEnableNewAppListMixer[] = "enable-new-app-list-mixer";
46 const char kDisableNewAppListMixer[] = "disable-new-app-list-mixer";
47
48 // If set, the app list will forget it has been installed on startup. Note this 43 // If set, the app list will forget it has been installed on startup. Note this
49 // doesn't prevent the app list from running, it just makes Chrome think the app 44 // doesn't prevent the app list from running, it just makes Chrome think the app
50 // list hasn't been enabled (as in kEnableAppList) yet. 45 // list hasn't been enabled (as in kEnableAppList) yet.
51 const char kResetAppListInstallState[] = "reset-app-list-install-state"; 46 const char kResetAppListInstallState[] = "reset-app-list-install-state";
52 47
53 bool IsAppListSyncEnabled() { 48 bool IsAppListSyncEnabled() {
54 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
55 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList); 50 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList);
56 #endif 51 #endif
57 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 52 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return false; 114 return false;
120 115
121 return true; 116 return true;
122 #else 117 #else
123 return false; 118 return false;
124 #endif 119 #endif
125 } 120 }
126 121
127 } // namespace switches 122 } // namespace switches
128 } // namespace app_list 123 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698