[email protected] | 9c66adc | 2012-01-05 02:10:16 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 5 | #include "chrome/browser/about_flags.h" |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 6 | |
| 7 | #include <algorithm> |
| 8 | #include <iterator> |
| 9 | #include <map> |
| 10 | #include <set> |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 11 | #include <utility> |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 12 | |
[email protected] | 265fd7b | 2013-08-13 02:32:10 | [diff] [blame] | 13 | #include "ash/ash_switches.h" |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 14 | #include "base/command_line.h" |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 15 | #include "base/memory/singleton.h" |
[email protected] | 3ea1b18 | 2013-02-08 22:38:41 | [diff] [blame] | 16 | #include "base/strings/string_number_conversions.h" |
[email protected] | 135cb80 | 2013-06-09 16:44:20 | [diff] [blame] | 17 | #include "base/strings/utf_string_conversions.h" |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 18 | #include "base/values.h" |
[email protected] | 681ccff | 2013-03-18 06:13:52 | [diff] [blame] | 19 | #include "cc/base/switches.h" |
[email protected] | 1153455 | 2013-12-05 02:09:30 | [diff] [blame] | 20 | #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 21 | #include "chrome/browser/flags_storage.h" |
[email protected] | d208f4d8 | 2011-05-23 21:52:03 | [diff] [blame] | 22 | #include "chrome/common/chrome_content_client.h" |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 23 | #include "chrome/common/chrome_switches.h" |
[email protected] | 58bc1c3 | 2013-12-16 22:52:07 | [diff] [blame] | 24 | #include "components/autofill/core/common/autofill_switches.h" |
[email protected] | cbb22eb | 2013-06-24 23:53:10 | [diff] [blame] | 25 | #include "components/nacl/common/nacl_switches.h" |
[email protected] | 7f6f44c | 2011-12-14 13:23:38 | [diff] [blame] | 26 | #include "content/public/browser/user_metrics.h" |
[email protected] | 49d9b14 | 2013-07-19 08:50:27 | [diff] [blame] | 27 | #include "extensions/common/switches.h" |
[email protected] | d96aef2 | 2012-10-30 11:47:02 | [diff] [blame] | 28 | #include "grit/chromium_strings.h" |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 29 | #include "grit/generated_resources.h" |
[email protected] | d96aef2 | 2012-10-30 11:47:02 | [diff] [blame] | 30 | #include "grit/google_chrome_strings.h" |
[email protected] | e2e8e32 | 2012-09-12 04:37:02 | [diff] [blame] | 31 | #include "media/base/media_switches.h" |
[email protected] | c051a1b | 2011-01-21 23:30:17 | [diff] [blame] | 32 | #include "ui/base/l10n/l10n_util.h" |
[email protected] | c9c73ad4 | 2012-04-18 03:35:59 | [diff] [blame] | 33 | #include "ui/base/ui_base_switches.h" |
[email protected] | a6147a2 | 2013-09-26 06:55:09 | [diff] [blame] | 34 | #include "ui/events/event_switches.h" |
[email protected] | 0d3b9dd | 2012-11-14 04:14:48 | [diff] [blame] | 35 | #include "ui/gfx/switches.h" |
[email protected] | c9e2cbbb | 2012-05-12 21:17:27 | [diff] [blame] | 36 | #include "ui/gl/gl_switches.h" |
[email protected] | 86459e2c | 2013-04-10 13:39:24 | [diff] [blame] | 37 | #include "ui/keyboard/keyboard_switches.h" |
[email protected] | 9a22457 | 2013-05-12 23:08:56 | [diff] [blame] | 38 | #include "ui/message_center/message_center_switches.h" |
[email protected] | c4f51d2 | 2013-11-05 03:11:26 | [diff] [blame] | 39 | #include "ui/views/views_switches.h" |
[email protected] | 9a22457 | 2013-05-12 23:08:56 | [diff] [blame] | 40 | |
[email protected] | dc04be7c | 2012-03-15 23:57:49 | [diff] [blame] | 41 | #if defined(USE_ASH) |
[email protected] | b65bdda | 2011-12-23 23:35:31 | [diff] [blame] | 42 | #include "ash/ash_switches.h" |
[email protected] | dc04be7c | 2012-03-15 23:57:49 | [diff] [blame] | 43 | #endif |
| 44 | |
[email protected] | badba1ad | 2012-11-16 17:21:46 | [diff] [blame] | 45 | #if defined(OS_CHROMEOS) |
| 46 | #include "chromeos/chromeos_switches.h" |
[email protected] | 6d98abf | 2013-06-17 23:35:51 | [diff] [blame] | 47 | #include "third_party/cros_system_api/switches/chrome_switches.h" |
[email protected] | badba1ad | 2012-11-16 17:21:46 | [diff] [blame] | 48 | #endif |
| 49 | |
[email protected] | fe2b77f6 | 2013-11-09 04:30:51 | [diff] [blame] | 50 | #if defined(ENABLE_APP_LIST) |
| 51 | #include "ui/app_list/app_list_switches.h" |
| 52 | #endif |
| 53 | |
[email protected] | e6e30ac | 2014-01-13 21:24:39 | [diff] [blame] | 54 | using base::UserMetricsAction; |
[email protected] | 7f6f44c | 2011-12-14 13:23:38 | [diff] [blame] | 55 | |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 56 | namespace about_flags { |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 57 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 58 | // Macros to simplify specifying the type. |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 59 | #define SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, switch_value) \ |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 60 | Experiment::SINGLE_VALUE, \ |
| 61 | command_line_switch, switch_value, NULL, NULL, NULL, 0 |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 62 | #define SINGLE_VALUE_TYPE(command_line_switch) \ |
| 63 | SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, "") |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 64 | #define ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(enable_switch, enable_value, \ |
| 65 | disable_switch, disable_value) \ |
| 66 | Experiment::ENABLE_DISABLE_VALUE, enable_switch, enable_value, \ |
| 67 | disable_switch, disable_value, NULL, 3 |
| 68 | #define ENABLE_DISABLE_VALUE_TYPE(enable_switch, disable_switch) \ |
| 69 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(enable_switch, "", disable_switch, "") |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 70 | #define MULTI_VALUE_TYPE(choices) \ |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 71 | Experiment::MULTI_VALUE, NULL, NULL, NULL, NULL, choices, arraysize(choices) |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 72 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 73 | namespace { |
| 74 | |
[email protected] | 9c7453d | 2012-01-21 00:45:40 | [diff] [blame] | 75 | const unsigned kOsAll = kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid; |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 76 | const unsigned kOsDesktop = kOsMac | kOsWin | kOsLinux | kOsCrOS; |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 77 | |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 78 | // Adds a |StringValue| to |list| for each platform where |bitmask| indicates |
| 79 | // whether the experiment is available on that platform. |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 80 | void AddOsStrings(unsigned bitmask, base::ListValue* list) { |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 81 | struct { |
| 82 | unsigned bit; |
| 83 | const char* const name; |
| 84 | } kBitsToOs[] = { |
| 85 | {kOsMac, "Mac"}, |
| 86 | {kOsWin, "Windows"}, |
| 87 | {kOsLinux, "Linux"}, |
| 88 | {kOsCrOS, "Chrome OS"}, |
[email protected] | 4052d83 | 2013-01-16 05:31:01 | [diff] [blame] | 89 | {kOsAndroid, "Android"}, |
[email protected] | 37736bd | 2013-04-18 11:53:58 | [diff] [blame] | 90 | {kOsCrOSOwnerOnly, "Chrome OS (owner only)"}, |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 91 | }; |
| 92 | for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kBitsToOs); ++i) |
| 93 | if (bitmask & kBitsToOs[i].bit) |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 94 | list->Append(new base::StringValue(kBitsToOs[i].name)); |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 95 | } |
| 96 | |
[email protected] | 6d98abf | 2013-06-17 23:35:51 | [diff] [blame] | 97 | // Convert switch constants to proper CommandLine::StringType strings. |
| 98 | CommandLine::StringType GetSwitchString(const std::string& flag) { |
| 99 | CommandLine cmd_line(CommandLine::NO_PROGRAM); |
| 100 | cmd_line.AppendSwitch(flag); |
| 101 | DCHECK(cmd_line.argv().size() == 2); |
| 102 | return cmd_line.argv()[1]; |
| 103 | } |
| 104 | |
| 105 | // Scoops flags from a command line. |
| 106 | std::set<CommandLine::StringType> ExtractFlagsFromCommandLine( |
| 107 | const CommandLine& cmdline) { |
| 108 | std::set<CommandLine::StringType> flags; |
| 109 | // First do the ones between --flag-switches-begin and --flag-switches-end. |
| 110 | CommandLine::StringVector::const_iterator first = |
| 111 | std::find(cmdline.argv().begin(), cmdline.argv().end(), |
| 112 | GetSwitchString(switches::kFlagSwitchesBegin)); |
| 113 | CommandLine::StringVector::const_iterator last = |
| 114 | std::find(cmdline.argv().begin(), cmdline.argv().end(), |
| 115 | GetSwitchString(switches::kFlagSwitchesEnd)); |
| 116 | if (first != cmdline.argv().end() && last != cmdline.argv().end()) |
| 117 | flags.insert(first + 1, last); |
| 118 | #if defined(OS_CHROMEOS) |
| 119 | // Then add those between --policy-switches-begin and --policy-switches-end. |
| 120 | first = std::find(cmdline.argv().begin(), cmdline.argv().end(), |
| 121 | GetSwitchString(chromeos::switches::kPolicySwitchesBegin)); |
| 122 | last = std::find(cmdline.argv().begin(), cmdline.argv().end(), |
| 123 | GetSwitchString(chromeos::switches::kPolicySwitchesEnd)); |
| 124 | if (first != cmdline.argv().end() && last != cmdline.argv().end()) |
| 125 | flags.insert(first + 1, last); |
| 126 | #endif |
| 127 | return flags; |
| 128 | } |
| 129 | |
[email protected] | fb85419 | 2013-02-06 01:30:04 | [diff] [blame] | 130 | const Experiment::Choice kEnableCompositingForFixedPositionChoices[] = { |
| 131 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 132 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 133 | switches::kEnableCompositingForFixedPosition, ""}, |
| 134 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 135 | switches::kDisableCompositingForFixedPosition, ""}, |
| 136 | { IDS_FLAGS_COMPOSITING_FOR_FIXED_POSITION_HIGH_DPI, |
| 137 | switches::kEnableHighDpiCompositingForFixedPosition, ""} |
| 138 | }; |
| 139 | |
[email protected] | d8221b2 | 2013-05-23 05:35:43 | [diff] [blame] | 140 | const Experiment::Choice kEnableCompositingForTransitionChoices[] = { |
| 141 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 142 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 143 | switches::kEnableCompositingForTransition, ""}, |
| 144 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 145 | switches::kDisableCompositingForTransition, ""}, |
| 146 | }; |
| 147 | |
[email protected] | 06fc4d3b | 2013-07-08 21:07:24 | [diff] [blame] | 148 | const Experiment::Choice kEnableAcceleratedFixedRootBackgroundChoices[] = { |
| 149 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 150 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 151 | switches::kEnableAcceleratedFixedRootBackground, ""}, |
| 152 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 153 | switches::kDisableAcceleratedFixedRootBackground, ""}, |
| 154 | }; |
| 155 | |
[email protected] | d793253 | 2012-11-21 21:10:31 | [diff] [blame] | 156 | const Experiment::Choice kTouchEventsChoices[] = { |
| 157 | { IDS_GENERIC_EXPERIMENT_CHOICE_AUTOMATIC, "", "" }, |
| 158 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 159 | switches::kTouchEvents, |
| 160 | switches::kTouchEventsEnabled }, |
| 161 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 162 | switches::kTouchEvents, |
| 163 | switches::kTouchEventsDisabled } |
| 164 | }; |
| 165 | |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame] | 166 | const Experiment::Choice kTouchOptimizedUIChoices[] = { |
[email protected] | d793253 | 2012-11-21 21:10:31 | [diff] [blame] | 167 | { IDS_GENERIC_EXPERIMENT_CHOICE_AUTOMATIC, "", "" }, |
[email protected] | a45c6940 | 2012-06-24 16:32:20 | [diff] [blame] | 168 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame] | 169 | switches::kTouchOptimizedUI, |
| 170 | switches::kTouchOptimizedUIEnabled }, |
[email protected] | a45c6940 | 2012-06-24 16:32:20 | [diff] [blame] | 171 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame] | 172 | switches::kTouchOptimizedUI, |
| 173 | switches::kTouchOptimizedUIDisabled } |
| 174 | }; |
| 175 | |
[email protected] | c38e980 | 2014-02-18 21:32:12 | [diff] [blame] | 176 | #if defined(USE_AURA) |
| 177 | const Experiment::Choice kOverscrollHistoryNavigationChoices[] = { |
| 178 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, "", "" }, |
| 179 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 180 | switches::kOverscrollHistoryNavigation, |
| 181 | "0" }, |
| 182 | { IDS_OVERSCROLL_HISTORY_NAVIGATION_SIMPLE_UI, |
| 183 | switches::kOverscrollHistoryNavigation, |
| 184 | "2" } |
| 185 | }; |
| 186 | #endif |
| 187 | |
[email protected] | 66f409c | 2012-10-04 20:59:04 | [diff] [blame] | 188 | const Experiment::Choice kNaClDebugMaskChoices[] = { |
[email protected] | 66f409c | 2012-10-04 20:59:04 | [diff] [blame] | 189 | // Secure shell can be used on ChromeOS for forwarding the TCP port opened by |
[email protected] | 402bed6e | 2014-03-07 08:33:09 | [diff] [blame] | 190 | // debug stub to a remote machine. Since secure shell uses NaCl, we usually |
| 191 | // want to avoid debugging that. The PNaCl translator is also a NaCl module, |
| 192 | // so by default we want to avoid debugging that. |
| 193 | // NOTE: As the default value must be the empty string, the mask excluding |
| 194 | // the PNaCl translator and secure shell is substituted elsewhere. |
| 195 | { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, |
| 196 | { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, |
[email protected] | 66f409c | 2012-10-04 20:59:04 | [diff] [blame] | 197 | { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, |
| 198 | switches::kNaClDebugMask, "*://*/*debug.nmf" } |
| 199 | }; |
| 200 | |
[email protected] | 9323fdd1 | 2013-02-23 00:31:36 | [diff] [blame] | 201 | const Experiment::Choice kImplSidePaintingChoices[] = { |
| 202 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 203 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 204 | cc::switches::kEnableImplSidePainting, ""}, |
| 205 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 206 | cc::switches::kDisableImplSidePainting, ""} |
| 207 | }; |
| 208 | |
[email protected] | 7621af2 | 2013-09-12 23:06:33 | [diff] [blame] | 209 | const Experiment::Choice kLCDTextChoices[] = { |
| 210 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 211 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, cc::switches::kEnableLCDText, ""}, |
| 212 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, cc::switches::kDisableLCDText, ""} |
| 213 | }; |
| 214 | |
[email protected] | 0c04d1c | 2013-07-10 00:02:32 | [diff] [blame] | 215 | const Experiment::Choice kDelegatedRendererChoices[] = { |
| 216 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 217 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 218 | switches::kEnableDelegatedRenderer, ""}, |
| 219 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 220 | switches::kDisableDelegatedRenderer, ""} |
| 221 | }; |
| 222 | |
[email protected] | a42c85f | 2013-04-04 18:15:12 | [diff] [blame] | 223 | const Experiment::Choice kMaxTilesForInterestAreaChoices[] = { |
| 224 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 225 | { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_SHORT, |
| 226 | cc::switches::kMaxTilesForInterestArea, "64"}, |
| 227 | { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_TALL, |
| 228 | cc::switches::kMaxTilesForInterestArea, "128"}, |
| 229 | { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_GRANDE, |
| 230 | cc::switches::kMaxTilesForInterestArea, "256"}, |
| 231 | { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_VENTI, |
| 232 | cc::switches::kMaxTilesForInterestArea, "512"} |
| 233 | }; |
| 234 | |
[email protected] | a361812 | 2013-04-26 21:15:34 | [diff] [blame] | 235 | const Experiment::Choice kDefaultTileWidthChoices[] = { |
| 236 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 237 | { IDS_FLAGS_DEFAULT_TILE_WIDTH_SHORT, |
| 238 | switches::kDefaultTileWidth, "128"}, |
| 239 | { IDS_FLAGS_DEFAULT_TILE_WIDTH_TALL, |
| 240 | switches::kDefaultTileWidth, "256"}, |
| 241 | { IDS_FLAGS_DEFAULT_TILE_WIDTH_GRANDE, |
| 242 | switches::kDefaultTileWidth, "512"}, |
| 243 | { IDS_FLAGS_DEFAULT_TILE_WIDTH_VENTI, |
| 244 | switches::kDefaultTileWidth, "1024"} |
| 245 | }; |
| 246 | |
| 247 | const Experiment::Choice kDefaultTileHeightChoices[] = { |
| 248 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 249 | { IDS_FLAGS_DEFAULT_TILE_HEIGHT_SHORT, |
| 250 | switches::kDefaultTileHeight, "128"}, |
| 251 | { IDS_FLAGS_DEFAULT_TILE_HEIGHT_TALL, |
| 252 | switches::kDefaultTileHeight, "256"}, |
| 253 | { IDS_FLAGS_DEFAULT_TILE_HEIGHT_GRANDE, |
| 254 | switches::kDefaultTileHeight, "512"}, |
| 255 | { IDS_FLAGS_DEFAULT_TILE_HEIGHT_VENTI, |
| 256 | switches::kDefaultTileHeight, "1024"} |
| 257 | }; |
| 258 | |
[email protected] | 38484df1 | 2013-04-10 16:42:03 | [diff] [blame] | 259 | const Experiment::Choice kSimpleCacheBackendChoices[] = { |
[email protected] | 9a3de3e3 | 2013-04-23 19:05:21 | [diff] [blame] | 260 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 261 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 262 | switches::kUseSimpleCacheBackend, "off" }, |
[email protected] | 38484df1 | 2013-04-10 16:42:03 | [diff] [blame] | 263 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 264 | switches::kUseSimpleCacheBackend, "on"} |
| 265 | }; |
| 266 | |
[email protected] | 9afc14e2 | 2013-09-25 22:34:14 | [diff] [blame] | 267 | #if defined(USE_AURA) |
[email protected] | 910ecfe | 2013-06-03 23:38:14 | [diff] [blame] | 268 | const Experiment::Choice kTabCaptureUpscaleQualityChoices[] = { |
| 269 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 270 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST, |
| 271 | switches::kTabCaptureUpscaleQuality, "fast" }, |
| 272 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD, |
| 273 | switches::kTabCaptureUpscaleQuality, "good" }, |
| 274 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST, |
| 275 | switches::kTabCaptureUpscaleQuality, "best" }, |
| 276 | }; |
| 277 | |
| 278 | const Experiment::Choice kTabCaptureDownscaleQualityChoices[] = { |
| 279 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 280 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST, |
| 281 | switches::kTabCaptureDownscaleQuality, "fast" }, |
| 282 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD, |
| 283 | switches::kTabCaptureDownscaleQuality, "good" }, |
| 284 | { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST, |
| 285 | switches::kTabCaptureDownscaleQuality, "best" }, |
| 286 | }; |
[email protected] | 9afc14e2 | 2013-09-25 22:34:14 | [diff] [blame] | 287 | #endif |
[email protected] | 910ecfe | 2013-06-03 23:38:14 | [diff] [blame] | 288 | |
[email protected] | 54c8d28 | 2014-01-24 17:31:08 | [diff] [blame] | 289 | #if defined(USE_AURA) || defined(OS_LINUX) |
| 290 | const Experiment::Choice kOverlayScrollbarChoices[] = { |
| 291 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 292 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 293 | switches::kEnableOverlayScrollbar, ""}, |
| 294 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 295 | switches::kDisableOverlayScrollbar, ""} |
| 296 | }; |
| 297 | #endif |
| 298 | |
[email protected] | be2e40a | 2013-08-27 02:49:20 | [diff] [blame] | 299 | const Experiment::Choice kMapImageChoices[] = { |
| 300 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 301 | { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 302 | cc::switches::kEnableMapImage, ""}, |
| 303 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 304 | cc::switches::kDisableMapImage, ""} |
| 305 | }; |
| 306 | |
[email protected] | d5874f1 | 2013-12-05 04:30:00 | [diff] [blame] | 307 | #if defined(OS_ANDROID) |
| 308 | const Experiment::Choice kZeroSuggestExperimentsChoices[] = { |
| 309 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 310 | { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED, |
| 311 | switches::kEnableZeroSuggestMostVisited, ""}, |
| 312 | { IDS_FLAGS_ZERO_SUGGEST_ETHER_SERP, |
| 313 | switches::kEnableZeroSuggestEtherSerp, ""}, |
| 314 | { IDS_FLAGS_ZERO_SUGGEST_ETHER_NO_SERP, |
| 315 | switches::kEnableZeroSuggestEtherNoSerp, ""}, |
| 316 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 317 | switches::kDisableZeroSuggest, ""} |
| 318 | }; |
| 319 | #endif |
| 320 | |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 321 | const Experiment::Choice kNumRasterThreadsChoices[] = { |
| 322 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
[email protected] | 00d92d3 | 2014-01-23 09:46:50 | [diff] [blame] | 323 | { IDS_FLAGS_NUM_RASTER_THREADS_ONE, switches::kNumRasterThreads, "1" }, |
| 324 | { IDS_FLAGS_NUM_RASTER_THREADS_TWO, switches::kNumRasterThreads, "2" }, |
| 325 | { IDS_FLAGS_NUM_RASTER_THREADS_THREE, switches::kNumRasterThreads, "3" }, |
| 326 | { IDS_FLAGS_NUM_RASTER_THREADS_FOUR, switches::kNumRasterThreads, "4" } |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 327 | }; |
| 328 | |
[email protected] | dc920d6 | 2013-12-13 22:12:47 | [diff] [blame] | 329 | // We're using independent flags here (as opposed to a common flag with |
| 330 | // different values) to be able to enable/disable the entire experience |
| 331 | // associated with this feature server-side from the FieldTrial (the complete |
| 332 | // experience includes other flag changes as well). It is not currently possible |
| 333 | // to do that with "flag=value" flags. |
| 334 | const Experiment::Choice kSearchButtonInOmniboxChoices[] = { |
| 335 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 336 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 337 | switches::kDisableSearchButtonInOmnibox, ""}, |
| 338 | { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR, |
| 339 | switches::kEnableSearchButtonInOmniboxForStr, ""}, |
| 340 | { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR_OR_IIP, |
| 341 | switches::kEnableSearchButtonInOmniboxForStrOrIip, ""}, |
| 342 | { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLED, |
| 343 | switches::kEnableSearchButtonInOmniboxAlways, ""} |
| 344 | }; |
| 345 | |
[email protected] | 78dd09e | 2014-01-12 02:41:46 | [diff] [blame] | 346 | // See comment above for kSearchButtonInOmniboxChoices. The same reasoning |
| 347 | // applies here. |
| 348 | const Experiment::Choice kOriginChipChoices[] = { |
| 349 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 350 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableOriginChip, ""}, |
[email protected] | 78dd09e | 2014-01-12 02:41:46 | [diff] [blame] | 351 | { IDS_FLAGS_ORIGIN_CHIP_TRAILING_LOCATION_BAR, |
| 352 | switches::kEnableOriginChipTrailingLocationBar, ""}, |
[email protected] | a0ebaf9 | 2014-01-14 04:47:52 | [diff] [blame] | 353 | { IDS_FLAGS_ORIGIN_CHIP_LEADING_LOCATION_BAR, |
| 354 | switches::kEnableOriginChipLeadingLocationBar, ""}, |
[email protected] | 78dd09e | 2014-01-12 02:41:46 | [diff] [blame] | 355 | { IDS_FLAGS_ORIGIN_CHIP_LEADING_MENU_BUTTON, |
| 356 | switches::kEnableOriginChipLeadingMenuButton, ""} |
| 357 | }; |
[email protected] | 7a54bf4b | 2014-02-06 19:21:54 | [diff] [blame] | 358 | const Experiment::Choice kOriginChipV2Choices[] = { |
| 359 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 360 | { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableOriginChipV2, ""}, |
| 361 | { IDS_FLAGS_ORIGIN_CHIP_V2_HIDE_ON_MOUSE_RELEASE, |
| 362 | switches::kEnableOriginChipV2HideOnMouseRelease, ""}, |
| 363 | { IDS_FLAGS_ORIGIN_CHIP_V2_HIDE_ON_USER_INPUT, |
| 364 | switches::kEnableOriginChipV2HideOnUserInput, ""} |
| 365 | }; |
[email protected] | 78dd09e | 2014-01-12 02:41:46 | [diff] [blame] | 366 | |
[email protected] | 4d11b08b | 2014-01-27 22:19:07 | [diff] [blame] | 367 | const Experiment::Choice kNotificationCenterTrayBehaviorChoices[] = { |
| 368 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 369 | { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_NEVER, |
| 370 | message_center::switches::kNotificationCenterTrayBehavior, "never" }, |
| 371 | { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_ALWAYS, |
| 372 | message_center::switches::kNotificationCenterTrayBehavior, "always" }, |
| 373 | { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_UNREAD, |
| 374 | message_center::switches::kNotificationCenterTrayBehavior, "unread" } |
| 375 | }; |
| 376 | |
[email protected] | f42cffb | 2014-03-08 18:03:25 | [diff] [blame] | 377 | const Experiment::Choice kTouchScrollingModeChoices[] = { |
| 378 | { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 379 | { IDS_FLAGS_TOUCH_SCROLLING_MODE_TOUCHCANCEL, |
| 380 | switches::kTouchScrollingMode, |
| 381 | switches::kTouchScrollingModeTouchcancel }, |
| 382 | { IDS_FLAGS_TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE, |
| 383 | switches::kTouchScrollingMode, |
| 384 | switches::kTouchScrollingModeAbsorbTouchmove }, |
| 385 | { IDS_FLAGS_TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE, |
| 386 | switches::kTouchScrollingMode, |
| 387 | switches::kTouchScrollingModeSyncTouchmove }, |
| 388 | }; |
| 389 | |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 390 | // RECORDING USER METRICS FOR FLAGS: |
| 391 | // ----------------------------------------------------------------------------- |
| 392 | // The first line of the experiment is the internal name. If you'd like to |
| 393 | // gather statistics about the usage of your flag, you should append a marker |
| 394 | // comment to the end of the feature name, like so: |
| 395 | // "my-special-feature", // FLAGS:RECORD_UMA |
| 396 | // |
[email protected] | 02c6ab4d | 2013-12-03 17:29:26 | [diff] [blame] | 397 | // After doing that, run //tools/metrics/actions/extract_actions.py (see |
| 398 | // instructions at the top of that file for details) to update the |
| 399 | // chromeactions.txt file, which will enable UMA to record your feature flag. |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 400 | // |
[email protected] | 783d5bb | 2012-10-24 03:47:14 | [diff] [blame] | 401 | // After your feature has shipped under a flag, you can locate the metrics under |
| 402 | // the action name AboutFlags_internal-action-name. Actions are recorded once |
| 403 | // per startup, so you should divide this number by AboutFlags_StartupTick to |
| 404 | // get a sense of usage. Note that this will not be the same as number of users |
| 405 | // with a given feature enabled because users can quit and relaunch the |
| 406 | // application multiple times over a given time interval. The dashboard also |
| 407 | // shows you how many (metrics reporting) users have enabled the flag over the |
| 408 | // last seven days. However, note that this is not the same as the number of |
| 409 | // users who have the flag enabled, since enabling the flag happens once, |
| 410 | // whereas running with the flag enabled happens until the user flips the flag |
| 411 | // again. |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 412 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 413 | // To add a new experiment add to the end of kExperiments. There are two |
| 414 | // distinct types of experiments: |
| 415 | // . SINGLE_VALUE: experiment is either on or off. Use the SINGLE_VALUE_TYPE |
| 416 | // macro for this type supplying the command line to the macro. |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 417 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 418 | // deactivated state for this lab (i.e. no command line option). To specify |
| 419 | // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the |
| 420 | // array of choices. |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 421 | // See the documentation of Experiment for details on the fields. |
| 422 | // |
| 423 | // When adding a new choice, add it to the end of the list. |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 424 | const Experiment kExperiments[] = { |
| 425 | { |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 426 | "conflicting-modules-check", // FLAGS:RECORD_UMA |
[email protected] | c1bbaa8 | 2010-11-08 11:17:05 | [diff] [blame] | 427 | IDS_FLAGS_CONFLICTS_CHECK_NAME, |
| 428 | IDS_FLAGS_CONFLICTS_CHECK_DESCRIPTION, |
| 429 | kOsWin, |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 430 | SINGLE_VALUE_TYPE(switches::kConflictingModulesCheck) |
[email protected] | c1bbaa8 | 2010-11-08 11:17:05 | [diff] [blame] | 431 | }, |
| 432 | { |
[email protected] | 96c6f4c | 2011-05-18 19:36:22 | [diff] [blame] | 433 | "ignore-gpu-blacklist", |
| 434 | IDS_FLAGS_IGNORE_GPU_BLACKLIST_NAME, |
| 435 | IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION, |
| 436 | kOsAll, |
| 437 | SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist) |
| 438 | }, |
| 439 | { |
[email protected] | 0110cf11 | 2011-07-02 00:39:43 | [diff] [blame] | 440 | "force-compositing-mode-2", |
[email protected] | 96c6f4c | 2011-05-18 19:36:22 | [diff] [blame] | 441 | IDS_FLAGS_FORCE_COMPOSITING_MODE_NAME, |
| 442 | IDS_FLAGS_FORCE_COMPOSITING_MODE_DESCRIPTION, |
[email protected] | 85a36cd | 2014-01-22 11:41:26 | [diff] [blame] | 443 | kOsLinux, |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 444 | ENABLE_DISABLE_VALUE_TYPE(switches::kForceCompositingMode, |
| 445 | switches::kDisableForceCompositingMode) |
[email protected] | 96c6f4c | 2011-05-18 19:36:22 | [diff] [blame] | 446 | }, |
| 447 | { |
[email protected] | 72787e39 | 2012-03-23 05:55:43 | [diff] [blame] | 448 | "threaded-compositing-mode", |
| 449 | IDS_FLAGS_THREADED_COMPOSITING_MODE_NAME, |
| 450 | IDS_FLAGS_THREADED_COMPOSITING_MODE_DESCRIPTION, |
[email protected] | 85a36cd | 2014-01-22 11:41:26 | [diff] [blame] | 451 | kOsLinux, |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 452 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableThreadedCompositing, |
| 453 | switches::kDisableThreadedCompositing) |
[email protected] | 644a107 | 2012-03-16 09:29:59 | [diff] [blame] | 454 | }, |
| 455 | { |
[email protected] | 17e2769 | 2013-02-06 17:02:09 | [diff] [blame] | 456 | "force-accelerated-composited-scrolling", |
| 457 | IDS_FLAGS_FORCE_ACCELERATED_OVERFLOW_SCROLL_MODE_NAME, |
| 458 | IDS_FLAGS_FORCE_ACCELERATED_OVERFLOW_SCROLL_MODE_DESCRIPTION, |
| 459 | kOsAll, |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 460 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAcceleratedOverflowScroll, |
| 461 | switches::kDisableAcceleratedOverflowScroll) |
[email protected] | 17e2769 | 2013-02-06 17:02:09 | [diff] [blame] | 462 | }, |
| 463 | { |
[email protected] | 44de749 | 2013-10-18 15:14:59 | [diff] [blame] | 464 | "force-universal-accelerated-composited-scrolling", |
| 465 | IDS_FLAGS_FORCE_UNIVERSAL_ACCELERATED_OVERFLOW_SCROLL_MODE_NAME, |
| 466 | IDS_FLAGS_FORCE_UNIVERSAL_ACCELERATED_OVERFLOW_SCROLL_MODE_DESCRIPTION, |
| 467 | kOsAll, |
| 468 | ENABLE_DISABLE_VALUE_TYPE( |
| 469 | switches::kEnableUniversalAcceleratedOverflowScroll, |
| 470 | switches::kDisableUniversalAcceleratedOverflowScroll) |
| 471 | }, |
[email protected] | 5b7033fc | 2013-12-07 22:32:07 | [diff] [blame] | 472 | #if defined(OS_WIN) |
| 473 | { |
| 474 | "enable-direct-write", |
| 475 | IDS_FLAGS_ENABLE_DIRECT_WRITE_NAME, |
| 476 | IDS_FLAGS_ENABLE_DIRECT_WRITE_DESCRIPTION, |
| 477 | kOsWin, |
| 478 | SINGLE_VALUE_TYPE(switches::kEnableDirectWrite) |
| 479 | }, |
| 480 | #endif |
[email protected] | 8b1c3c7 | 2013-01-25 01:48:43 | [diff] [blame] | 481 | { |
[email protected] | 2b60875 | 2013-05-01 03:34:36 | [diff] [blame] | 482 | "enable-experimental-canvas-features", |
| 483 | IDS_FLAGS_ENABLE_EXPERIMENTAL_CANVAS_FEATURES_NAME, |
| 484 | IDS_FLAGS_ENABLE_EXPERIMENTAL_CANVAS_FEATURES_DESCRIPTION, |
| 485 | kOsAll, |
| 486 | SINGLE_VALUE_TYPE(switches::kEnableExperimentalCanvasFeatures) |
| 487 | }, |
| 488 | { |
[email protected] | 81c64af6 | 2012-06-06 20:15:52 | [diff] [blame] | 489 | "disable-accelerated-2d-canvas", |
| 490 | IDS_FLAGS_DISABLE_ACCELERATED_2D_CANVAS_NAME, |
| 491 | IDS_FLAGS_DISABLE_ACCELERATED_2D_CANVAS_DESCRIPTION, |
| 492 | kOsAll, |
| 493 | SINGLE_VALUE_TYPE(switches::kDisableAccelerated2dCanvas) |
| 494 | }, |
| 495 | { |
[email protected] | 5963b77 | 2011-02-09 22:55:38 | [diff] [blame] | 496 | "composited-layer-borders", |
| 497 | IDS_FLAGS_COMPOSITED_LAYER_BORDERS, |
| 498 | IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, |
| 499 | kOsAll, |
[email protected] | 4d5e676 | 2013-03-19 18:46:57 | [diff] [blame] | 500 | SINGLE_VALUE_TYPE(cc::switches::kShowCompositedLayerBorders) |
[email protected] | 5963b77 | 2011-02-09 22:55:38 | [diff] [blame] | 501 | }, |
| 502 | { |
[email protected] | a8f1eaa | 2011-03-07 19:00:58 | [diff] [blame] | 503 | "show-fps-counter", |
| 504 | IDS_FLAGS_SHOW_FPS_COUNTER, |
| 505 | IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, |
| 506 | kOsAll, |
[email protected] | 4d5e676 | 2013-03-19 18:46:57 | [diff] [blame] | 507 | SINGLE_VALUE_TYPE(cc::switches::kShowFPSCounter) |
[email protected] | a8f1eaa | 2011-03-07 19:00:58 | [diff] [blame] | 508 | }, |
[email protected] | 8ff7f34 | 2011-05-25 01:49:47 | [diff] [blame] | 509 | { |
[email protected] | 70c98a33 | 2011-12-21 20:51:52 | [diff] [blame] | 510 | "accelerated-filters", |
| 511 | IDS_FLAGS_ACCELERATED_FILTERS, |
| 512 | IDS_FLAGS_ACCELERATED_FILTERS_DESCRIPTION, |
| 513 | kOsAll, |
| 514 | SINGLE_VALUE_TYPE(switches::kEnableAcceleratedFilters) |
| 515 | }, |
| 516 | { |
[email protected] | deaba6d5 | 2011-09-23 14:47:12 | [diff] [blame] | 517 | "disable-webgl", |
| 518 | IDS_FLAGS_DISABLE_WEBGL_NAME, |
| 519 | IDS_FLAGS_DISABLE_WEBGL_DESCRIPTION, |
[email protected] | 6c7784e | 2013-08-01 22:41:28 | [diff] [blame] | 520 | kOsAll, |
[email protected] | deaba6d5 | 2011-09-23 14:47:12 | [diff] [blame] | 521 | SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL) |
| 522 | }, |
[email protected] | 09096e0 | 2012-05-24 11:12:04 | [diff] [blame] | 523 | { |
[email protected] | 4ef5e13 | 2014-03-10 20:16:00 | [diff] [blame] | 524 | "enable-d3d11", |
| 525 | IDS_FLAGS_ENABLE_D3D11_NAME, |
| 526 | IDS_FLAGS_ENABLE_D3D11_DESCRIPTION, |
| 527 | kOsWin, |
| 528 | SINGLE_VALUE_TYPE(switches::kEnableD3D11) |
| 529 | }, |
| 530 | { |
[email protected] | ce585bf | 2013-03-14 16:25:16 | [diff] [blame] | 531 | "disable-webrtc", |
| 532 | IDS_FLAGS_DISABLE_WEBRTC_NAME, |
| 533 | IDS_FLAGS_DISABLE_WEBRTC_DESCRIPTION, |
[email protected] | d9da958 | 2013-01-31 04:59:05 | [diff] [blame] | 534 | kOsAndroid, |
| 535 | #if defined(OS_ANDROID) |
[email protected] | ce585bf | 2013-03-14 16:25:16 | [diff] [blame] | 536 | SINGLE_VALUE_TYPE(switches::kDisableWebRTC) |
[email protected] | d9da958 | 2013-01-31 04:59:05 | [diff] [blame] | 537 | #else |
| 538 | SINGLE_VALUE_TYPE("") |
| 539 | #endif |
| 540 | }, |
[email protected] | 5e2bc8c | 2013-05-28 22:59:57 | [diff] [blame] | 541 | #if defined(ENABLE_WEBRTC) |
[email protected] | d816ddc | 2013-05-23 14:28:30 | [diff] [blame] | 542 | { |
[email protected] | f1045f0 | 2013-08-02 23:19:35 | [diff] [blame] | 543 | "disable-device-enumeration", |
| 544 | IDS_FLAGS_DISABLE_DEVICE_ENUMERATION_NAME, |
| 545 | IDS_FLAGS_DISABLE_DEVICE_ENUMERATION_DESCRIPTION, |
[email protected] | c129874 | 2013-07-17 04:06:32 | [diff] [blame] | 546 | kOsAll, |
[email protected] | f1045f0 | 2013-08-02 23:19:35 | [diff] [blame] | 547 | SINGLE_VALUE_TYPE(switches::kDisableDeviceEnumeration) |
[email protected] | c129874 | 2013-07-17 04:06:32 | [diff] [blame] | 548 | }, |
[email protected] | 96cbf42 | 2013-09-11 12:42:22 | [diff] [blame] | 549 | { |
[email protected] | fdf631e | 2013-09-13 09:06:07 | [diff] [blame] | 550 | "disable-sctp-data-channels", |
| 551 | IDS_FLAGS_DISABLE_SCTP_DATA_CHANNELS_NAME, |
| 552 | IDS_FLAGS_DISABLE_SCTP_DATA_CHANNELS_DESCRIPTION, |
| 553 | kOsAll, |
| 554 | SINGLE_VALUE_TYPE(switches::kDisableSCTPDataChannels) |
| 555 | }, |
| 556 | { |
| 557 | "disable-webrtc-hw-decoding", |
| 558 | IDS_FLAGS_DISABLE_WEBRTC_HW_DECODING_NAME, |
| 559 | IDS_FLAGS_DISABLE_WEBRTC_HW_DECODING_DESCRIPTION, |
[email protected] | 6442b02 | 2013-12-05 11:09:05 | [diff] [blame] | 560 | kOsAndroid | kOsCrOS, |
[email protected] | fdf631e | 2013-09-13 09:06:07 | [diff] [blame] | 561 | SINGLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding) |
| 562 | }, |
| 563 | { |
[email protected] | 96cbf42 | 2013-09-11 12:42:22 | [diff] [blame] | 564 | "disable-webrtc-hw-encoding", |
| 565 | IDS_FLAGS_DISABLE_WEBRTC_HW_ENCODING_NAME, |
| 566 | IDS_FLAGS_DISABLE_WEBRTC_HW_ENCODING_DESCRIPTION, |
[email protected] | 6998f01f2 | 2013-12-04 09:27:57 | [diff] [blame] | 567 | kOsAndroid | kOsCrOS, |
[email protected] | 96cbf42 | 2013-09-11 12:42:22 | [diff] [blame] | 568 | SINGLE_VALUE_TYPE(switches::kDisableWebRtcHWEncoding) |
| 569 | }, |
[email protected] | 5e2bc8c | 2013-05-28 22:59:57 | [diff] [blame] | 570 | #endif |
[email protected] | 34cb529 | 2013-04-15 06:06:31 | [diff] [blame] | 571 | #if defined(OS_ANDROID) |
[email protected] | 0221139 | 2013-12-09 18:13:14 | [diff] [blame] | 572 | #if defined(ARCH_CPU_X86) |
| 573 | { |
| 574 | "enable-webaudio", |
| 575 | IDS_FLAGS_ENABLE_WEBAUDIO_NAME, |
| 576 | IDS_FLAGS_ENABLE_WEBAUDIO_DESCRIPTION, |
| 577 | kOsAndroid, |
| 578 | SINGLE_VALUE_TYPE(switches::kEnableWebAudio) |
| 579 | }, |
| 580 | #else |
[email protected] | 34cb529 | 2013-04-15 06:06:31 | [diff] [blame] | 581 | { |
[email protected] | 7b8a3163 | 2013-06-13 22:42:37 | [diff] [blame] | 582 | "disable-webaudio", |
| 583 | IDS_FLAGS_DISABLE_WEBAUDIO_NAME, |
| 584 | IDS_FLAGS_DISABLE_WEBAUDIO_DESCRIPTION, |
[email protected] | 34cb529 | 2013-04-15 06:06:31 | [diff] [blame] | 585 | kOsAndroid, |
[email protected] | 7b8a3163 | 2013-06-13 22:42:37 | [diff] [blame] | 586 | SINGLE_VALUE_TYPE(switches::kDisableWebAudio) |
[email protected] | 34cb529 | 2013-04-15 06:06:31 | [diff] [blame] | 587 | }, |
| 588 | #endif |
[email protected] | 0221139 | 2013-12-09 18:13:14 | [diff] [blame] | 589 | #endif |
[email protected] | d9da958 | 2013-01-31 04:59:05 | [diff] [blame] | 590 | { |
[email protected] | 96bcdc10 | 2012-05-24 23:42:10 | [diff] [blame] | 591 | "fixed-position-creates-stacking-context", |
| 592 | IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_NAME, |
| 593 | IDS_FLAGS_FIXED_POSITION_CREATES_STACKING_CONTEXT_DESCRIPTION, |
| 594 | kOsAll, |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 595 | ENABLE_DISABLE_VALUE_TYPE( |
| 596 | switches::kEnableFixedPositionCreatesStackingContext, |
| 597 | switches::kDisableFixedPositionCreatesStackingContext) |
[email protected] | 96bcdc10 | 2012-05-24 23:42:10 | [diff] [blame] | 598 | }, |
[email protected] | fb85419 | 2013-02-06 01:30:04 | [diff] [blame] | 599 | { |
| 600 | "enable-compositing-for-fixed-position", |
| 601 | IDS_FLAGS_COMPOSITING_FOR_FIXED_POSITION_NAME, |
| 602 | IDS_FLAGS_COMPOSITING_FOR_FIXED_POSITION_DESCRIPTION, |
| 603 | kOsAll, |
| 604 | MULTI_VALUE_TYPE(kEnableCompositingForFixedPositionChoices) |
| 605 | }, |
[email protected] | d8221b2 | 2013-05-23 05:35:43 | [diff] [blame] | 606 | { |
| 607 | "enable-compositing-for-transition", |
| 608 | IDS_FLAGS_COMPOSITING_FOR_TRANSITION_NAME, |
| 609 | IDS_FLAGS_COMPOSITING_FOR_TRANSITION_DESCRIPTION, |
| 610 | kOsAll, |
| 611 | MULTI_VALUE_TYPE(kEnableCompositingForTransitionChoices) |
| 612 | }, |
[email protected] | 06fc4d3b | 2013-07-08 21:07:24 | [diff] [blame] | 613 | { |
| 614 | "enable-accelerated-fixed-root-background", |
| 615 | IDS_FLAGS_ACCELERATED_FIXED_ROOT_BACKGROUND_NAME, |
| 616 | IDS_FLAGS_ACCELERATED_FIXED_ROOT_BACKGROUND_DESCRIPTION, |
| 617 | kOsAll, |
| 618 | MULTI_VALUE_TYPE(kEnableAcceleratedFixedRootBackgroundChoices) |
| 619 | }, |
[email protected] | a7640ef2 | 2012-10-06 00:52:08 | [diff] [blame] | 620 | // TODO(bbudge): When NaCl is on by default, remove this flag entry. |
[email protected] | 2fe15fcb | 2010-10-21 20:39:53 | [diff] [blame] | 621 | { |
[email protected] | e3791ce9 | 2011-08-09 01:03:32 | [diff] [blame] | 622 | "enable-nacl", // FLAGS:RECORD_UMA |
[email protected] | 4ff87d20 | 2010-11-06 01:28:40 | [diff] [blame] | 623 | IDS_FLAGS_ENABLE_NACL_NAME, |
| 624 | IDS_FLAGS_ENABLE_NACL_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 625 | kOsDesktop, |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 626 | SINGLE_VALUE_TYPE(switches::kEnableNaCl) |
[email protected] | 4ff87d20 | 2010-11-06 01:28:40 | [diff] [blame] | 627 | }, |
| 628 | { |
[email protected] | 9addd1c | 2012-09-15 14:28:24 | [diff] [blame] | 629 | "enable-nacl-debug", // FLAGS:RECORD_UMA |
| 630 | IDS_FLAGS_ENABLE_NACL_DEBUG_NAME, |
| 631 | IDS_FLAGS_ENABLE_NACL_DEBUG_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 632 | kOsDesktop, |
[email protected] | 9addd1c | 2012-09-15 14:28:24 | [diff] [blame] | 633 | SINGLE_VALUE_TYPE(switches::kEnableNaClDebug) |
[email protected] | 401b9079 | 2012-05-30 11:41:13 | [diff] [blame] | 634 | }, |
| 635 | { |
[email protected] | 7de24f5 | 2013-08-29 10:02:55 | [diff] [blame] | 636 | "disable-pnacl", // FLAGS:RECORD_UMA |
| 637 | IDS_FLAGS_DISABLE_PNACL_NAME, |
| 638 | IDS_FLAGS_DISABLE_PNACL_DESCRIPTION, |
| 639 | kOsDesktop, |
| 640 | SINGLE_VALUE_TYPE(switches::kDisablePnacl) |
| 641 | }, |
| 642 | { |
[email protected] | 66f409c | 2012-10-04 20:59:04 | [diff] [blame] | 643 | "nacl-debug-mask", // FLAGS:RECORD_UMA |
| 644 | IDS_FLAGS_NACL_DEBUG_MASK_NAME, |
| 645 | IDS_FLAGS_NACL_DEBUG_MASK_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 646 | kOsDesktop, |
[email protected] | 66f409c | 2012-10-04 20:59:04 | [diff] [blame] | 647 | MULTI_VALUE_TYPE(kNaClDebugMaskChoices) |
| 648 | }, |
| 649 | { |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 650 | "extension-apis", // FLAGS:RECORD_UMA |
[email protected] | 11dd68cd5 | 2010-11-12 01:15:32 | [diff] [blame] | 651 | IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_NAME, |
| 652 | IDS_FLAGS_EXPERIMENTAL_EXTENSION_APIS_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 653 | kOsDesktop, |
[email protected] | c8d0299 | 2013-07-31 22:16:51 | [diff] [blame] | 654 | SINGLE_VALUE_TYPE(extensions::switches::kEnableExperimentalExtensionApis) |
[email protected] | 11dd68cd5 | 2010-11-12 01:15:32 | [diff] [blame] | 655 | }, |
[email protected] | 3627b06d | 2010-11-12 16:36:16 | [diff] [blame] | 656 | { |
[email protected] | ac2e2acd | 2013-03-21 12:57:29 | [diff] [blame] | 657 | "extensions-on-chrome-urls", |
| 658 | IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_NAME, |
| 659 | IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_DESCRIPTION, |
| 660 | kOsAll, |
[email protected] | 49d9b14 | 2013-07-19 08:50:27 | [diff] [blame] | 661 | SINGLE_VALUE_TYPE(extensions::switches::kExtensionsOnChromeURLs) |
[email protected] | ac2e2acd | 2013-03-21 12:57:29 | [diff] [blame] | 662 | }, |
| 663 | { |
[email protected] | 88c9201 | 2013-07-02 11:56:34 | [diff] [blame] | 664 | "enable-fast-unload", |
| 665 | IDS_FLAGS_ENABLE_FAST_UNLOAD_NAME, |
| 666 | IDS_FLAGS_ENABLE_FAST_UNLOAD_DESCRIPTION, |
| 667 | kOsAll, |
| 668 | SINGLE_VALUE_TYPE(switches::kEnableFastUnload) |
| 669 | }, |
| 670 | { |
[email protected] | e9cddd5 | 2013-03-23 17:37:53 | [diff] [blame] | 671 | "enable-adview", |
| 672 | IDS_FLAGS_ENABLE_ADVIEW_NAME, |
| 673 | IDS_FLAGS_ENABLE_ADVIEW_DESCRIPTION, |
| 674 | kOsDesktop, |
| 675 | SINGLE_VALUE_TYPE(switches::kEnableAdview) |
| 676 | }, |
| 677 | { |
[email protected] | 1f4da9e | 2013-06-27 05:23:44 | [diff] [blame] | 678 | "enable-app-window-controls", |
| 679 | IDS_FLAGS_ENABLE_APP_WINDOW_CONTROLS_NAME, |
| 680 | IDS_FLAGS_ENABLE_APP_WINDOW_CONTROLS_DESCRIPTION, |
| 681 | kOsDesktop, |
| 682 | SINGLE_VALUE_TYPE(switches::kEnableAppWindowControls) |
| 683 | }, |
| 684 | { |
[email protected] | cbe224d | 2011-08-04 22:12:49 | [diff] [blame] | 685 | "apps-new-install-bubble", |
| 686 | IDS_FLAGS_APPS_NEW_INSTALL_BUBBLE_NAME, |
| 687 | IDS_FLAGS_APPS_NEW_INSTALL_BUBBLE_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 688 | kOsDesktop, |
[email protected] | cbe224d | 2011-08-04 22:12:49 | [diff] [blame] | 689 | SINGLE_VALUE_TYPE(switches::kAppsNewInstallBubble) |
| 690 | }, |
| 691 | { |
[email protected] | 80bd24e | 2010-11-30 09:34:38 | [diff] [blame] | 692 | "disable-hyperlink-auditing", |
| 693 | IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_NAME, |
| 694 | IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_DESCRIPTION, |
| 695 | kOsAll, |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 696 | SINGLE_VALUE_TYPE(switches::kNoPings) |
[email protected] | feb28fef | 2010-12-01 10:52:51 | [diff] [blame] | 697 | }, |
[email protected] | 333bdc5 | 2013-07-16 00:37:04 | [diff] [blame] | 698 | #if defined(OS_ANDROID) |
| 699 | { |
| 700 | "enable-new-ntp", |
| 701 | IDS_FLAGS_ENABLE_NEW_NTP, |
| 702 | IDS_FLAGS_ENABLE_NEW_NTP_DESCRIPTION, |
| 703 | kOsAndroid, |
[email protected] | 6bab2e3 | 2013-09-11 00:09:03 | [diff] [blame] | 704 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNewNTP, |
| 705 | switches::kDisableNewNTP) |
[email protected] | 333bdc5 | 2013-07-16 00:37:04 | [diff] [blame] | 706 | }, |
[email protected] | 26d1b4d | 2014-02-08 02:42:17 | [diff] [blame] | 707 | { |
| 708 | "contextual-search", |
| 709 | IDS_FLAGS_ENABLE_CONTEXTUAL_SEARCH, |
| 710 | IDS_FLAGS_ENABLE_CONTEXTUAL_SEARCH_DESCRIPTION, |
| 711 | kOsAndroid, |
| 712 | SINGLE_VALUE_TYPE(switches::kEnableContextualSearch) |
| 713 | }, |
[email protected] | 333bdc5 | 2013-07-16 00:37:04 | [diff] [blame] | 714 | #endif |
[email protected] | 8cc9e53 | 2013-05-06 21:01:47 | [diff] [blame] | 715 | { |
[email protected] | 3eb5728c | 2011-06-20 22:32:24 | [diff] [blame] | 716 | "show-autofill-type-predictions", |
| 717 | IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_NAME, |
| 718 | IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_DESCRIPTION, |
| 719 | kOsAll, |
[email protected] | e217c563 | 2013-04-12 19:11:48 | [diff] [blame] | 720 | SINGLE_VALUE_TYPE(autofill::switches::kShowAutofillTypePredictions) |
[email protected] | 3eb5728c | 2011-06-20 22:32:24 | [diff] [blame] | 721 | }, |
[email protected] | bff4d3e | 2011-06-21 23:58:52 | [diff] [blame] | 722 | { |
[email protected] | e755a38 | 2012-09-13 17:16:35 | [diff] [blame] | 723 | "enable-gesture-tap-highlight", |
| 724 | IDS_FLAGS_ENABLE_GESTURE_TAP_HIGHLIGHTING_NAME, |
| 725 | IDS_FLAGS_ENABLE_GESTURE_TAP_HIGHLIGHTING_DESCRIPTION, |
[email protected] | 9ef42cf | 2014-03-11 02:50:12 | [diff] [blame^] | 726 | kOsLinux | kOsCrOS | kOsWin | kOsAndroid, |
[email protected] | 06ca05d | 2013-03-13 19:12:47 | [diff] [blame] | 727 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableGestureTapHighlight, |
| 728 | switches::kDisableGestureTapHighlight) |
[email protected] | e755a38 | 2012-09-13 17:16:35 | [diff] [blame] | 729 | }, |
| 730 | { |
[email protected] | a22ebd81 | 2011-06-23 00:05:39 | [diff] [blame] | 731 | "enable-smooth-scrolling", // FLAGS:RECORD_UMA |
| 732 | IDS_FLAGS_ENABLE_SMOOTH_SCROLLING_NAME, |
| 733 | IDS_FLAGS_ENABLE_SMOOTH_SCROLLING_DESCRIPTION, |
| 734 | // Can't expose the switch unless the code is compiled in. |
[email protected] | 554b706 | 2011-09-03 03:09:40 | [diff] [blame] | 735 | // On by default for the Mac (different implementation in WebKit). |
[email protected] | a5a5aaf | 2013-12-19 02:10:10 | [diff] [blame] | 736 | kOsLinux, |
[email protected] | a22ebd81 | 2011-06-23 00:05:39 | [diff] [blame] | 737 | SINGLE_VALUE_TYPE(switches::kEnableSmoothScrolling) |
| 738 | }, |
[email protected] | 54c8d28 | 2014-01-24 17:31:08 | [diff] [blame] | 739 | #if defined(USE_AURA) || defined(OS_LINUX) |
[email protected] | 81a6b0b | 2011-06-24 17:55:40 | [diff] [blame] | 740 | { |
[email protected] | 54c8d28 | 2014-01-24 17:31:08 | [diff] [blame] | 741 | "overlay-scrollbars", |
[email protected] | 23eecbd0 | 2013-09-19 18:13:37 | [diff] [blame] | 742 | IDS_FLAGS_ENABLE_OVERLAY_SCROLLBARS_NAME, |
| 743 | IDS_FLAGS_ENABLE_OVERLAY_SCROLLBARS_DESCRIPTION, |
| 744 | // Uses the system preference on Mac (a different implementation). |
| 745 | // On Android, this is always enabled. |
[email protected] | 54c8d28 | 2014-01-24 17:31:08 | [diff] [blame] | 746 | kOsLinux | kOsCrOS | kOsWin, |
| 747 | MULTI_VALUE_TYPE(kOverlayScrollbarChoices) |
[email protected] | 23eecbd0 | 2013-09-19 18:13:37 | [diff] [blame] | 748 | }, |
[email protected] | 54c8d28 | 2014-01-24 17:31:08 | [diff] [blame] | 749 | #endif |
[email protected] | 23eecbd0 | 2013-09-19 18:13:37 | [diff] [blame] | 750 | { |
[email protected] | 7e7a2809 | 2011-12-09 22:24:55 | [diff] [blame] | 751 | "enable-panels", |
| 752 | IDS_FLAGS_ENABLE_PANELS_NAME, |
| 753 | IDS_FLAGS_ENABLE_PANELS_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 754 | kOsDesktop, |
[email protected] | 7e7a2809 | 2011-12-09 22:24:55 | [diff] [blame] | 755 | SINGLE_VALUE_TYPE(switches::kEnablePanels) |
[email protected] | 73fb1fc5 | 2011-07-09 00:06:54 | [diff] [blame] | 756 | }, |
[email protected] | e3749d1 | 2011-07-25 22:22:12 | [diff] [blame] | 757 | { |
[email protected] | 27c14f0 | 2012-06-22 17:29:58 | [diff] [blame] | 758 | // See http://crbug.com/120416 for how to remove this flag. |
[email protected] | 6474b11 | 2012-05-04 19:35:27 | [diff] [blame] | 759 | "save-page-as-mhtml", // FLAGS:RECORD_UMA |
| 760 | IDS_FLAGS_SAVE_PAGE_AS_MHTML_NAME, |
| 761 | IDS_FLAGS_SAVE_PAGE_AS_MHTML_DESCRIPTION, |
| 762 | kOsMac | kOsWin | kOsLinux, |
| 763 | SINGLE_VALUE_TYPE(switches::kSavePageAsMHTML) |
| 764 | }, |
| 765 | { |
[email protected] | b7bb44f | 2011-09-01 05:17:03 | [diff] [blame] | 766 | "enable-autologin", |
| 767 | IDS_FLAGS_ENABLE_AUTOLOGIN_NAME, |
| 768 | IDS_FLAGS_ENABLE_AUTOLOGIN_DESCRIPTION, |
| 769 | kOsMac | kOsWin | kOsLinux, |
| 770 | SINGLE_VALUE_TYPE(switches::kEnableAutologin) |
| 771 | }, |
[email protected] | b984117 | 2011-09-26 23:36:09 | [diff] [blame] | 772 | { |
[email protected] | 903e6338 | 2013-06-01 00:40:58 | [diff] [blame] | 773 | "enable-quic", |
| 774 | IDS_FLAGS_ENABLE_QUIC_NAME, |
| 775 | IDS_FLAGS_ENABLE_QUIC_DESCRIPTION, |
| 776 | kOsAll, |
| 777 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableQuic, |
| 778 | switches::kDisableQuic) |
| 779 | }, |
| 780 | { |
[email protected] | eb8f88e | 2013-07-15 09:52:17 | [diff] [blame] | 781 | "enable-quic-https", |
| 782 | IDS_FLAGS_ENABLE_QUIC_HTTPS_NAME, |
| 783 | IDS_FLAGS_ENABLE_QUIC_HTTPS_DESCRIPTION, |
| 784 | kOsAll, |
[email protected] | a64b213e | 2013-07-24 21:41:00 | [diff] [blame] | 785 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableQuicHttps, |
| 786 | switches::kDisableQuicHttps) |
[email protected] | eb8f88e | 2013-07-15 09:52:17 | [diff] [blame] | 787 | }, |
| 788 | { |
[email protected] | bca09b998 | 2013-06-27 22:30:46 | [diff] [blame] | 789 | "enable-spdy4a2", |
| 790 | IDS_FLAGS_ENABLE_SPDY4A2_NAME, |
| 791 | IDS_FLAGS_ENABLE_SPDY4A2_DESCRIPTION, |
| 792 | kOsAll, |
| 793 | SINGLE_VALUE_TYPE(switches::kEnableSpdy4a2) |
| 794 | }, |
| 795 | { |
[email protected] | 88a33262 | 2013-07-30 07:13:32 | [diff] [blame] | 796 | "enable-http2-draft-04", |
| 797 | IDS_FLAGS_ENABLE_HTTP2_DRAFT_04_NAME, |
| 798 | IDS_FLAGS_ENABLE_HTTP2_DRAFT_04_DESCRIPTION, |
| 799 | kOsAll, |
| 800 | SINGLE_VALUE_TYPE(switches::kEnableHttp2Draft04) |
| 801 | }, |
| 802 | { |
[email protected] | 27b3fe9 | 2012-03-21 05:35:06 | [diff] [blame] | 803 | "enable-async-dns", |
| 804 | IDS_FLAGS_ENABLE_ASYNC_DNS_NAME, |
| 805 | IDS_FLAGS_ENABLE_ASYNC_DNS_DESCRIPTION, |
[email protected] | 85594c14 | 2012-09-11 18:02:46 | [diff] [blame] | 806 | kOsWin | kOsMac | kOsLinux | kOsCrOS, |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 807 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAsyncDns, |
| 808 | switches::kDisableAsyncDns) |
[email protected] | 27b3fe9 | 2012-03-21 05:35:06 | [diff] [blame] | 809 | }, |
| 810 | { |
[email protected] | bc9235c2 | 2013-09-24 07:32:44 | [diff] [blame] | 811 | "disable-webkit-media-source", |
[email protected] | 5bf1223a5 | 2013-05-14 21:42:31 | [diff] [blame] | 812 | IDS_FLAGS_DISABLE_WEBKIT_MEDIA_SOURCE_NAME, |
| 813 | IDS_FLAGS_DISABLE_WEBKIT_MEDIA_SOURCE_DESCRIPTION, |
[email protected] | ec9d053 | 2012-03-21 05:55:32 | [diff] [blame] | 814 | kOsAll, |
[email protected] | 5bf1223a5 | 2013-05-14 21:42:31 | [diff] [blame] | 815 | SINGLE_VALUE_TYPE(switches::kDisableWebKitMediaSource) |
[email protected] | 6aa03b3 | 2011-10-27 21:44:44 | [diff] [blame] | 816 | }, |
[email protected] | e4e68dbb | 2011-11-18 01:50:22 | [diff] [blame] | 817 | { |
[email protected] | 722b4d484f | 2013-10-08 20:33:59 | [diff] [blame] | 818 | "disable-unprefixed-media-source", |
| 819 | IDS_FLAGS_DISABLE_UNPREFIXED_MEDIA_SOURCE_NAME, |
| 820 | IDS_FLAGS_DISABLE_UNPREFIXED_MEDIA_SOURCE_DESCRIPTION, |
| 821 | kOsAll, |
| 822 | SINGLE_VALUE_TYPE(switches::kDisableUnprefixedMediaSource) |
| 823 | }, |
| 824 | { |
[email protected] | 16c242d | 2013-05-31 23:56:47 | [diff] [blame] | 825 | "enable-encrypted-media", |
| 826 | IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_NAME, |
| 827 | IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_DESCRIPTION, |
[email protected] | ddb0f26 | 2013-07-26 13:16:50 | [diff] [blame] | 828 | kOsAll, |
[email protected] | 16c242d | 2013-05-31 23:56:47 | [diff] [blame] | 829 | SINGLE_VALUE_TYPE(switches::kEnableEncryptedMedia) |
| 830 | }, |
| 831 | { |
[email protected] | e76d92f | 2013-09-26 20:03:35 | [diff] [blame] | 832 | "disable-prefixed-encrypted-media", |
[email protected] | 16c242d | 2013-05-31 23:56:47 | [diff] [blame] | 833 | IDS_FLAGS_DISABLE_PREFIXED_ENCRYPTED_MEDIA_NAME, |
| 834 | IDS_FLAGS_DISABLE_PREFIXED_ENCRYPTED_MEDIA_DESCRIPTION, |
[email protected] | ddb0f26 | 2013-07-26 13:16:50 | [diff] [blame] | 835 | kOsAll, |
[email protected] | e76d92f | 2013-09-26 20:03:35 | [diff] [blame] | 836 | SINGLE_VALUE_TYPE(switches::kDisablePrefixedEncryptedMedia) |
[email protected] | 9f5b782 | 2012-04-18 23:39:03 | [diff] [blame] | 837 | }, |
[email protected] | ce3934bb | 2013-09-10 02:02:56 | [diff] [blame] | 838 | #if defined(OS_ANDROID) |
| 839 | { |
[email protected] | 3c56ec1 | 2013-09-25 02:03:42 | [diff] [blame] | 840 | "disable-infobar-for-protected-media-identifier", |
| 841 | IDS_FLAGS_DISABLE_INFOBAR_FOR_PROTECTED_MEDIA_IDENTIFIER_NAME, |
| 842 | IDS_FLAGS_DISABLE_INFOBAR_FOR_PROTECTED_MEDIA_IDENTIFIER_DESCRIPTION, |
| 843 | kOsAndroid, |
| 844 | SINGLE_VALUE_TYPE(switches::kDisableInfobarForProtectedMediaIdentifier) |
| 845 | }, |
| 846 | { |
[email protected] | ce3934bb | 2013-09-10 02:02:56 | [diff] [blame] | 847 | "mediadrm-enable-non-compositing", |
| 848 | IDS_FLAGS_MEDIADRM_ENABLE_NON_COMPOSITING_NAME, |
| 849 | IDS_FLAGS_MEDIADRM_ENABLE_NON_COMPOSITING_DESCRIPTION, |
| 850 | kOsAndroid, |
| 851 | SINGLE_VALUE_TYPE(switches::kMediaDrmEnableNonCompositing) |
| 852 | }, |
| 853 | #endif // defined(OS_ANDROID) |
[email protected] | d21ead4 | 2013-06-24 06:35:06 | [diff] [blame] | 854 | { |
[email protected] | bf88c03 | 2011-12-22 19:05:47 | [diff] [blame] | 855 | "enable-javascript-harmony", |
| 856 | IDS_FLAGS_ENABLE_JAVASCRIPT_HARMONY_NAME, |
| 857 | IDS_FLAGS_ENABLE_JAVASCRIPT_HARMONY_DESCRIPTION, |
| 858 | kOsAll, |
| 859 | SINGLE_VALUE_TYPE_AND_VALUE(switches::kJavaScriptFlags, "--harmony") |
| 860 | }, |
[email protected] | 7e7f378a | 2012-01-05 14:35:37 | [diff] [blame] | 861 | { |
[email protected] | 88864db | 2012-01-18 20:56:35 | [diff] [blame] | 862 | "disable-software-rasterizer", |
| 863 | IDS_FLAGS_DISABLE_SOFTWARE_RASTERIZER_NAME, |
| 864 | IDS_FLAGS_DISABLE_SOFTWARE_RASTERIZER_DESCRIPTION, |
| 865 | #if defined(ENABLE_SWIFTSHADER) |
| 866 | kOsAll, |
| 867 | #else |
| 868 | 0, |
| 869 | #endif |
| 870 | SINGLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer) |
| 871 | }, |
[email protected] | 15a5d72 | 2012-01-23 09:11:14 | [diff] [blame] | 872 | { |
[email protected] | d1ddf8c5 | 2014-02-06 22:09:31 | [diff] [blame] | 873 | "enable-gpu-rasterization", |
| 874 | IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME, |
| 875 | IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION, |
[email protected] | 96d25e2 | 2014-03-04 05:56:18 | [diff] [blame] | 876 | kOsAndroid, |
[email protected] | d1ddf8c5 | 2014-02-06 22:09:31 | [diff] [blame] | 877 | SINGLE_VALUE_TYPE(cc::switches::kEnableGPURasterization) |
| 878 | }, |
| 879 | { |
[email protected] | c1b18ea | 2013-07-10 13:01:16 | [diff] [blame] | 880 | "enable-experimental-web-platform-features", |
| 881 | IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_NAME, |
| 882 | IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_DESCRIPTION, |
[email protected] | d2edc670 | 2012-01-30 09:13:16 | [diff] [blame] | 883 | kOsAll, |
[email protected] | c1b18ea | 2013-07-10 13:01:16 | [diff] [blame] | 884 | SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebPlatformFeatures) |
[email protected] | ca7a3d79 | 2012-03-02 15:55:49 | [diff] [blame] | 885 | }, |
| 886 | { |
[email protected] | 3e8befc | 2012-03-13 01:17:03 | [diff] [blame] | 887 | "disable-ntp-other-sessions-menu", |
[email protected] | 156f96633 | 2012-02-29 00:03:16 | [diff] [blame] | 888 | IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_NAME, |
| 889 | IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 890 | kOsDesktop, |
[email protected] | 3e8befc | 2012-03-13 01:17:03 | [diff] [blame] | 891 | SINGLE_VALUE_TYPE(switches::kDisableNTPOtherSessionsMenu) |
[email protected] | 156f96633 | 2012-02-29 00:03:16 | [diff] [blame] | 892 | }, |
[email protected] | 184ec59 | 2012-03-01 11:54:28 | [diff] [blame] | 893 | { |
| 894 | "enable-devtools-experiments", |
| 895 | IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_NAME, |
| 896 | IDS_FLAGS_ENABLE_DEVTOOLS_EXPERIMENTS_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 897 | kOsDesktop, |
[email protected] | 184ec59 | 2012-03-01 11:54:28 | [diff] [blame] | 898 | SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments) |
| 899 | }, |
[email protected] | 76d1854e | 2012-03-02 23:57:44 | [diff] [blame] | 900 | { |
[email protected] | 2fefdb3 | 2013-02-26 14:28:10 | [diff] [blame] | 901 | "silent-debugger-extension-api", |
| 902 | IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_NAME, |
| 903 | IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_DESCRIPTION, |
| 904 | kOsDesktop, |
| 905 | SINGLE_VALUE_TYPE(switches::kSilentDebuggerExtensionAPI) |
| 906 | }, |
| 907 | { |
[email protected] | 76d1854e | 2012-03-02 23:57:44 | [diff] [blame] | 908 | "enable-suggestions-ntp", |
| 909 | IDS_FLAGS_NTP_SUGGESTIONS_PAGE_NAME, |
| 910 | IDS_FLAGS_NTP_SUGGESTIONS_PAGE_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 911 | kOsDesktop, |
[email protected] | 76d1854e | 2012-03-02 23:57:44 | [diff] [blame] | 912 | SINGLE_VALUE_TYPE(switches::kEnableSuggestionsTabPage) |
| 913 | }, |
[email protected] | a3d5425 | 2012-04-05 20:04:13 | [diff] [blame] | 914 | { |
[email protected] | 1dbaf5e | 2012-11-30 05:51:32 | [diff] [blame] | 915 | "spellcheck-autocorrect", |
| 916 | IDS_FLAGS_SPELLCHECK_AUTOCORRECT, |
| 917 | IDS_FLAGS_SPELLCHECK_AUTOCORRECT_DESCRIPTION, |
| 918 | kOsWin | kOsLinux | kOsCrOS, |
| 919 | SINGLE_VALUE_TYPE(switches::kEnableSpellingAutoCorrect) |
| 920 | }, |
| 921 | { |
[email protected] | e2713728 | 2013-06-20 02:38:35 | [diff] [blame] | 922 | "enable-scroll-prediction", |
| 923 | IDS_FLAGS_ENABLE_SCROLL_PREDICTION_NAME, |
| 924 | IDS_FLAGS_ENABLE_SCROLL_PREDICTION_DESCRIPTION, |
| 925 | kOsDesktop, |
| 926 | SINGLE_VALUE_TYPE(switches::kEnableScrollPrediction) |
| 927 | }, |
| 928 | { |
[email protected] | d793253 | 2012-11-21 21:10:31 | [diff] [blame] | 929 | "touch-events", |
| 930 | IDS_TOUCH_EVENTS_NAME, |
| 931 | IDS_TOUCH_EVENTS_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 932 | kOsDesktop, |
[email protected] | d793253 | 2012-11-21 21:10:31 | [diff] [blame] | 933 | MULTI_VALUE_TYPE(kTouchEventsChoices) |
| 934 | }, |
| 935 | { |
[email protected] | c9c73ad4 | 2012-04-18 03:35:59 | [diff] [blame] | 936 | "touch-optimized-ui", |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame] | 937 | IDS_FLAGS_TOUCH_OPTIMIZED_UI_NAME, |
| 938 | IDS_FLAGS_TOUCH_OPTIMIZED_UI_DESCRIPTION, |
[email protected] | c71fe640 | 2012-08-15 15:22:55 | [diff] [blame] | 939 | kOsWin, |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame] | 940 | MULTI_VALUE_TYPE(kTouchOptimizedUIChoices) |
[email protected] | c9c73ad4 | 2012-04-18 03:35:59 | [diff] [blame] | 941 | }, |
[email protected] | 8a6aaa7 | 2012-04-20 20:53:58 | [diff] [blame] | 942 | { |
[email protected] | b9c96ff | 2012-11-26 22:24:40 | [diff] [blame] | 943 | "disable-touch-adjustment", |
| 944 | IDS_DISABLE_TOUCH_ADJUSTMENT_NAME, |
| 945 | IDS_DISABLE_TOUCH_ADJUSTMENT_DESCRIPTION, |
| 946 | kOsWin | kOsLinux | kOsCrOS, |
| 947 | SINGLE_VALUE_TYPE(switches::kDisableTouchAdjustment) |
| 948 | }, |
[email protected] | 0b60afa | 2012-04-19 17:36:39 | [diff] [blame] | 949 | #if defined(OS_CHROMEOS) |
| 950 | { |
[email protected] | 8834a3b | 2014-03-01 01:17:21 | [diff] [blame] | 951 | "ash-use-alternate-shelf", |
| 952 | IDS_FLAGS_ALTERNATE_SHELF_LAYOUT_NAME, |
| 953 | IDS_FLAGS_ALTERNATE_SHELF_LAYOUT_DESCRIPTION, |
| 954 | kOsCrOS, |
| 955 | ENABLE_DISABLE_VALUE_TYPE(ash::switches::kAshUseAlternateShelfLayout, |
| 956 | ash::switches::kAshDisableAlternateShelfLayout) |
| 957 | }, |
| 958 | { |
[email protected] | 736282c | 2014-01-06 22:01:58 | [diff] [blame] | 959 | "ash-disable-docked-windows", |
[email protected] | ba7df7e | 2013-07-18 21:49:59 | [diff] [blame] | 960 | IDS_FLAGS_DOCKED_WINDOWS_NAME, |
| 961 | IDS_FLAGS_DOCKED_WINDOWS_DESCRIPTION, |
| 962 | kOsCrOS, |
[email protected] | 736282c | 2014-01-06 22:01:58 | [diff] [blame] | 963 | SINGLE_VALUE_TYPE(ash::switches::kAshDisableDockedWindows) |
[email protected] | ba7df7e | 2013-07-18 21:49:59 | [diff] [blame] | 964 | }, |
[email protected] | 6345843 | 2013-11-20 17:28:53 | [diff] [blame] | 965 | { |
[email protected] | 7dd4448 | 2014-01-16 02:46:05 | [diff] [blame] | 966 | "ash-enable-immersive-fullscreen-all-windows2", |
[email protected] | 6345843 | 2013-11-20 17:28:53 | [diff] [blame] | 967 | IDS_FLAGS_IMMERSIVE_FULLSCREEN_FOR_ALL_WINDOWS_NAME, |
| 968 | IDS_FLAGS_IMMERSIVE_FULLSCREEN_FOR_ALL_WINDOWS_DESCRIPTION, |
| 969 | kOsCrOS, |
[email protected] | 7dd4448 | 2014-01-16 02:46:05 | [diff] [blame] | 970 | ENABLE_DISABLE_VALUE_TYPE( |
| 971 | ash::switches::kAshEnableImmersiveFullscreenForAllWindows, |
| 972 | ash::switches::kAshEnableImmersiveFullscreenForBrowserOnly) |
[email protected] | 6345843 | 2013-11-20 17:28:53 | [diff] [blame] | 973 | }, |
[email protected] | 81f89e9 | 2014-02-21 14:27:35 | [diff] [blame] | 974 | { |
| 975 | "network-portal-notification", |
| 976 | IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_NAME, |
| 977 | IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_DESCRIPTION, |
| 978 | kOsCrOS, |
| 979 | ENABLE_DISABLE_VALUE_TYPE( |
| 980 | chromeos::switches::kEnableNetworkPortalNotification, |
| 981 | chromeos::switches::kDisableNetworkPortalNotification) |
| 982 | }, |
[email protected] | 0b60afa | 2012-04-19 17:36:39 | [diff] [blame] | 983 | #endif |
[email protected] | 79be6d3 | 2012-04-24 20:47:44 | [diff] [blame] | 984 | { |
[email protected] | 8d68a3e0 | 2013-01-12 15:57:10 | [diff] [blame] | 985 | "enable-download-resumption", |
| 986 | IDS_FLAGS_ENABLE_DOWNLOAD_RESUMPTION_NAME, |
| 987 | IDS_FLAGS_ENABLE_DOWNLOAD_RESUMPTION_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 988 | kOsDesktop, |
[email protected] | 8d68a3e0 | 2013-01-12 15:57:10 | [diff] [blame] | 989 | SINGLE_VALUE_TYPE(switches::kEnableDownloadResumption) |
| 990 | }, |
| 991 | { |
[email protected] | 9a5940d | 2012-04-27 19:16:23 | [diff] [blame] | 992 | "allow-nacl-socket-api", |
| 993 | IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, |
| 994 | IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 995 | kOsDesktop, |
[email protected] | 9a5940d | 2012-04-27 19:16:23 | [diff] [blame] | 996 | SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") |
| 997 | }, |
[email protected] | 8533373 | 2012-05-01 19:02:24 | [diff] [blame] | 998 | { |
[email protected] | 60673ad7 | 2012-05-02 06:16:33 | [diff] [blame] | 999 | "stacked-tab-strip", |
| 1000 | IDS_FLAGS_STACKED_TAB_STRIP_NAME, |
| 1001 | IDS_FLAGS_STACKED_TAB_STRIP_DESCRIPTION, |
| 1002 | kOsWin, |
| 1003 | SINGLE_VALUE_TYPE(switches::kEnableStackedTabStrip) |
| 1004 | }, |
| 1005 | { |
[email protected] | 4bd2020 | 2012-06-14 17:35:01 | [diff] [blame] | 1006 | "force-device-scale-factor", |
[email protected] | 8533373 | 2012-05-01 19:02:24 | [diff] [blame] | 1007 | IDS_FLAGS_FORCE_HIGH_DPI_NAME, |
| 1008 | IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, |
| 1009 | kOsCrOS, |
[email protected] | 4bd2020 | 2012-06-14 17:35:01 | [diff] [blame] | 1010 | SINGLE_VALUE_TYPE_AND_VALUE(switches::kForceDeviceScaleFactor, "2") |
[email protected] | 8533373 | 2012-05-01 19:02:24 | [diff] [blame] | 1011 | }, |
[email protected] | 190349fd | 2012-05-02 00:10:47 | [diff] [blame] | 1012 | #if defined(OS_CHROMEOS) |
| 1013 | { |
| 1014 | "allow-touchpad-three-finger-click", |
| 1015 | IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_NAME, |
| 1016 | IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_DESCRIPTION, |
| 1017 | kOsCrOS, |
[email protected] | 2f2d6c3 | 2013-05-10 02:56:24 | [diff] [blame] | 1018 | SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchpadThreeFingerClick) |
[email protected] | 190349fd | 2012-05-02 00:10:47 | [diff] [blame] | 1019 | }, |
| 1020 | #endif |
[email protected] | 53520b1b | 2012-05-07 21:43:37 | [diff] [blame] | 1021 | #if defined(USE_ASH) |
| 1022 | { |
[email protected] | 2ddf37b | 2013-04-20 01:15:58 | [diff] [blame] | 1023 | "disable-minimize-on-second-launcher-item-click", |
| 1024 | IDS_FLAGS_DISABLE_MINIMIZE_ON_SECOND_LAUNCHER_ITEM_CLICK_NAME, |
| 1025 | IDS_FLAGS_DISABLE_MINIMIZE_ON_SECOND_LAUNCHER_ITEM_CLICK_DESCRIPTION, |
| 1026 | kOsAll, |
| 1027 | SINGLE_VALUE_TYPE(switches::kDisableMinimizeOnSecondLauncherItemClick) |
| 1028 | }, |
| 1029 | { |
[email protected] | cf21af6 | 2013-09-27 19:36:03 | [diff] [blame] | 1030 | "disable-overview-mode", |
| 1031 | IDS_FLAGS_DISABLE_OVERVIEW_MODE_NAME, |
| 1032 | IDS_FLAGS_DISABLE_OVERVIEW_MODE_DESCRIPTION, |
[email protected] | d24ce2c | 2013-08-01 15:14:19 | [diff] [blame] | 1033 | kOsCrOS, |
[email protected] | cf21af6 | 2013-09-27 19:36:03 | [diff] [blame] | 1034 | SINGLE_VALUE_TYPE(ash::switches::kAshDisableOverviewMode) |
[email protected] | d24ce2c | 2013-08-01 15:14:19 | [diff] [blame] | 1035 | }, |
| 1036 | { |
[email protected] | 7307474 | 2012-05-17 01:44:41 | [diff] [blame] | 1037 | "show-touch-hud", |
| 1038 | IDS_FLAGS_SHOW_TOUCH_HUD_NAME, |
| 1039 | IDS_FLAGS_SHOW_TOUCH_HUD_DESCRIPTION, |
| 1040 | kOsAll, |
| 1041 | SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud) |
| 1042 | }, |
| 1043 | { |
[email protected] | 9f0940b6 | 2012-05-23 22:56:35 | [diff] [blame] | 1044 | "enable-pinch", |
| 1045 | IDS_FLAGS_ENABLE_PINCH_SCALE_NAME, |
| 1046 | IDS_FLAGS_ENABLE_PINCH_SCALE_DESCRIPTION, |
[email protected] | 16ad47f8 | 2012-12-05 21:06:06 | [diff] [blame] | 1047 | kOsLinux | kOsWin | kOsCrOS, |
[email protected] | e4cd82e | 2013-04-10 15:20:38 | [diff] [blame] | 1048 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePinch, switches::kDisablePinch), |
| 1049 | }, |
| 1050 | { |
[email protected] | de0aaed | 2013-05-27 18:16:43 | [diff] [blame] | 1051 | "enable-pinch-virtual-viewport", |
| 1052 | IDS_FLAGS_ENABLE_PINCH_VIRTUAL_VIEWPORT_NAME, |
| 1053 | IDS_FLAGS_ENABLE_PINCH_VIRTUAL_VIEWPORT_DESCRIPTION, |
| 1054 | kOsLinux | kOsWin | kOsCrOS, |
| 1055 | SINGLE_VALUE_TYPE(cc::switches::kEnablePinchVirtualViewport), |
| 1056 | }, |
[email protected] | 7307474 | 2012-05-17 01:44:41 | [diff] [blame] | 1057 | #endif // defined(USE_ASH) |
[email protected] | 68bc37c | 2014-01-07 15:56:48 | [diff] [blame] | 1058 | { |
| 1059 | "enable-viewport-meta", |
| 1060 | IDS_FLAGS_ENABLE_VIEWPORT_META_NAME, |
| 1061 | IDS_FLAGS_ENABLE_VIEWPORT_META_DESCRIPTION, |
| 1062 | kOsLinux | kOsWin | kOsCrOS | kOsMac, |
| 1063 | SINGLE_VALUE_TYPE(switches::kEnableViewportMeta), |
| 1064 | }, |
[email protected] | ed7b67f3 | 2012-05-28 10:12:28 | [diff] [blame] | 1065 | #if defined(OS_CHROMEOS) |
| 1066 | { |
[email protected] | 8b04a165 | 2012-08-04 02:59:49 | [diff] [blame] | 1067 | "disable-boot-animation", |
| 1068 | IDS_FLAGS_DISABLE_BOOT_ANIMATION, |
| 1069 | IDS_FLAGS_DISABLE_BOOT_ANIMATION_DESCRIPTION, |
[email protected] | 37736bd | 2013-04-18 11:53:58 | [diff] [blame] | 1070 | kOsCrOSOwnerOnly, |
[email protected] | 2f2d6c3 | 2013-05-10 02:56:24 | [diff] [blame] | 1071 | SINGLE_VALUE_TYPE(chromeos::switches::kDisableBootAnimation), |
[email protected] | 8b04a165 | 2012-08-04 02:59:49 | [diff] [blame] | 1072 | }, |
[email protected] | 9505857 | 2012-08-20 14:57:29 | [diff] [blame] | 1073 | { |
[email protected] | 4e8e862 | 2014-01-30 04:37:05 | [diff] [blame] | 1074 | "enable-new-audio-player", |
| 1075 | IDS_FLAGS_FILE_MANAGER_ENABLE_NEW_AUDIO_PLAYER_NAME, |
| 1076 | IDS_FLAGS_FILE_MANAGER_ENABLE_NEW_AUDIO_PLAYER_DESCRIPTION, |
| 1077 | kOsCrOS, |
| 1078 | SINGLE_VALUE_TYPE(chromeos::switches::kFileManagerEnableNewAudioPlayer) |
| 1079 | }, |
| 1080 | { |
[email protected] | 099b890c | 2013-04-25 19:16:26 | [diff] [blame] | 1081 | "disable-quickoffice-component-app", |
| 1082 | IDS_FLAGS_DISABLE_QUICKOFFICE_COMPONENT_APP_NAME, |
| 1083 | IDS_FLAGS_DISABLE_QUICKOFFICE_COMPONENT_APP_DESCRIPTION, |
| 1084 | kOsCrOS, |
| 1085 | SINGLE_VALUE_TYPE(chromeos::switches::kDisableQuickofficeComponentApp), |
| 1086 | }, |
[email protected] | 31cf147 | 2013-09-13 00:36:42 | [diff] [blame] | 1087 | { |
[email protected] | 21d5a6b6 | 2014-01-24 22:47:14 | [diff] [blame] | 1088 | "disable-saml-signin", |
| 1089 | IDS_FLAGS_DISABLE_SAML_SIGNIN_NAME, |
| 1090 | IDS_FLAGS_DISABLE_SAML_SIGNIN_DESCRIPTION, |
[email protected] | 31cf147 | 2013-09-13 00:36:42 | [diff] [blame] | 1091 | kOsCrOS, |
[email protected] | 21d5a6b6 | 2014-01-24 22:47:14 | [diff] [blame] | 1092 | SINGLE_VALUE_TYPE(chromeos::switches::kDisableSamlSignin), |
[email protected] | 31cf147 | 2013-09-13 00:36:42 | [diff] [blame] | 1093 | }, |
[email protected] | d81240b | 2013-09-20 21:05:28 | [diff] [blame] | 1094 | { |
| 1095 | "enable-multi-profiles", |
| 1096 | IDS_FLAGS_ENABLE_MULTI_PROFILES_NAME, |
| 1097 | IDS_FLAGS_ENABLE_MULTI_PROFILES_DESCRIPTION, |
| 1098 | kOsCrOS, |
| 1099 | SINGLE_VALUE_TYPE(switches::kMultiProfiles), |
| 1100 | }, |
[email protected] | 62018dc | 2012-12-13 00:37:35 | [diff] [blame] | 1101 | #endif // defined(OS_CHROMEOS) |
[email protected] | 7db8893a | 2012-07-26 00:49:40 | [diff] [blame] | 1102 | { "disable-accelerated-video-decode", |
| 1103 | IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_NAME, |
| 1104 | IDS_FLAGS_DISABLE_ACCELERATED_VIDEO_DECODE_DESCRIPTION, |
[email protected] | 33e98a85 | 2013-04-26 05:14:19 | [diff] [blame] | 1105 | kOsWin | kOsCrOS, |
[email protected] | 7db8893a | 2012-07-26 00:49:40 | [diff] [blame] | 1106 | SINGLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode), |
[email protected] | 66dcb049 | 2012-06-18 22:32:15 | [diff] [blame] | 1107 | }, |
[email protected] | 37fee094 | 2012-08-07 21:07:45 | [diff] [blame] | 1108 | { |
[email protected] | ad3f6d2 | 2012-08-29 02:34:19 | [diff] [blame] | 1109 | "enable-contacts", |
| 1110 | IDS_FLAGS_ENABLE_CONTACTS_NAME, |
| 1111 | IDS_FLAGS_ENABLE_CONTACTS_DESCRIPTION, |
| 1112 | kOsCrOS, |
| 1113 | SINGLE_VALUE_TYPE(switches::kEnableContacts) |
| 1114 | }, |
[email protected] | 1d9bb9cd | 2012-08-28 22:02:50 | [diff] [blame] | 1115 | #if defined(USE_ASH) |
[email protected] | 35c9a4e | 2013-09-14 01:32:38 | [diff] [blame] | 1116 | { |
| 1117 | "ash-debug-shortcuts", |
| 1118 | IDS_FLAGS_DEBUG_SHORTCUTS_NAME, |
| 1119 | IDS_FLAGS_DEBUG_SHORTCUTS_DESCRIPTION, |
| 1120 | kOsAll, |
| 1121 | SINGLE_VALUE_TYPE(ash::switches::kAshDebugShortcuts), |
| 1122 | }, |
[email protected] | 1d9bb9cd | 2012-08-28 22:02:50 | [diff] [blame] | 1123 | { "ash-enable-advanced-gestures", |
| 1124 | IDS_FLAGS_ENABLE_ADVANCED_GESTURES_NAME, |
| 1125 | IDS_FLAGS_ENABLE_ADVANCED_GESTURES_DESCRIPTION, |
| 1126 | kOsCrOS, |
| 1127 | SINGLE_VALUE_TYPE(ash::switches::kAshEnableAdvancedGestures), |
| 1128 | }, |
[email protected] | 35c9a4e | 2013-09-14 01:32:38 | [diff] [blame] | 1129 | { "ash-alternate-caption-button", |
| 1130 | IDS_FLAGS_ASH_FRAME_CAPTION_BUTTON_STYLE_NAME, |
| 1131 | IDS_FLAGS_ASH_FRAME_CAPTION_BUTTON_STYLE_DESCRIPTION, |
| 1132 | kOsCrOS, |
| 1133 | ENABLE_DISABLE_VALUE_TYPE( |
| 1134 | ash::switches::kAshEnableAlternateFrameCaptionButtonStyle, |
| 1135 | ash::switches::kAshDisableAlternateFrameCaptionButtonStyle), |
| 1136 | }, |
[email protected] | b19b09a | 2014-02-26 05:34:34 | [diff] [blame] | 1137 | { "ash-enable-touch-view-testing", |
| 1138 | IDS_FLAGS_ASH_ENABLE_TOUCH_VIEW_TESTING_NAME, |
| 1139 | IDS_FLAGS_ASH_ENABLE_TOUCH_VIEW_TESTING_DESCRIPTION, |
| 1140 | kOsCrOS, |
| 1141 | SINGLE_VALUE_TYPE(ash::switches::kAshEnableTouchViewTesting), |
| 1142 | }, |
[email protected] | 1d9bb9cd | 2012-08-28 22:02:50 | [diff] [blame] | 1143 | #endif |
[email protected] | 9b7ab88 | 2012-09-10 23:46:36 | [diff] [blame] | 1144 | #if defined(OS_CHROMEOS) |
| 1145 | { |
[email protected] | 205f0789 | 2012-10-16 20:26:22 | [diff] [blame] | 1146 | "enable-carrier-switching", |
| 1147 | IDS_FLAGS_ENABLE_CARRIER_SWITCHING, |
| 1148 | IDS_FLAGS_ENABLE_CARRIER_SWITCHING_DESCRIPTION, |
| 1149 | kOsCrOS, |
[email protected] | 2f2d6c3 | 2013-05-10 02:56:24 | [diff] [blame] | 1150 | SINGLE_VALUE_TYPE(chromeos::switches::kEnableCarrierSwitching) |
[email protected] | 205f0789 | 2012-10-16 20:26:22 | [diff] [blame] | 1151 | }, |
| 1152 | { |
[email protected] | 9b7ab88 | 2012-09-10 23:46:36 | [diff] [blame] | 1153 | "enable-request-tablet-site", |
| 1154 | IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_NAME, |
| 1155 | IDS_FLAGS_ENABLE_REQUEST_TABLET_SITE_DESCRIPTION, |
| 1156 | kOsCrOS, |
[email protected] | 2f2d6c3 | 2013-05-10 02:56:24 | [diff] [blame] | 1157 | SINGLE_VALUE_TYPE(chromeos::switches::kEnableRequestTabletSite) |
[email protected] | 9b7ab88 | 2012-09-10 23:46:36 | [diff] [blame] | 1158 | }, |
| 1159 | #endif |
[email protected] | dab49c0b | 2012-10-04 05:55:35 | [diff] [blame] | 1160 | { |
| 1161 | "debug-packed-apps", |
| 1162 | IDS_FLAGS_DEBUG_PACKED_APP_NAME, |
| 1163 | IDS_FLAGS_DEBUG_PACKED_APP_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 1164 | kOsDesktop, |
[email protected] | dab49c0b | 2012-10-04 05:55:35 | [diff] [blame] | 1165 | SINGLE_VALUE_TYPE(switches::kDebugPackedApps) |
| 1166 | }, |
[email protected] | d1459ed | 2012-10-10 01:29:33 | [diff] [blame] | 1167 | { |
| 1168 | "enable-password-generation", |
| 1169 | IDS_FLAGS_ENABLE_PASSWORD_GENERATION_NAME, |
| 1170 | IDS_FLAGS_ENABLE_PASSWORD_GENERATION_DESCRIPTION, |
[email protected] | f3cd680 | 2013-01-23 20:25:56 | [diff] [blame] | 1171 | kOsDesktop, |
[email protected] | c3cc063 | 2013-10-03 21:54:43 | [diff] [blame] | 1172 | ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnablePasswordGeneration, |
| 1173 | autofill::switches::kDisablePasswordGeneration) |
[email protected] | d1459ed | 2012-10-10 01:29:33 | [diff] [blame] | 1174 | }, |
[email protected] | 26d045f | 2012-10-18 21:18:43 | [diff] [blame] | 1175 | { |
[email protected] | f2a394b | 2013-11-28 20:08:04 | [diff] [blame] | 1176 | "password-manager-reauthentication", |
[email protected] | 429a6e0 | 2013-10-23 18:40:48 | [diff] [blame] | 1177 | IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_NAME, |
| 1178 | IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_DESCRIPTION, |
[email protected] | 48293fb | 2013-12-04 04:02:03 | [diff] [blame] | 1179 | kOsMac | kOsWin, |
[email protected] | f2a394b | 2013-11-28 20:08:04 | [diff] [blame] | 1180 | SINGLE_VALUE_TYPE(switches::kDisablePasswordManagerReauthentication) |
[email protected] | 429a6e0 | 2013-10-23 18:40:48 | [diff] [blame] | 1181 | }, |
| 1182 | { |
[email protected] | 283cc56 | 2013-07-18 08:25:43 | [diff] [blame] | 1183 | "password-autofill-public-suffix-domain-matching", |
| 1184 | IDS_FLAGS_PASSWORD_AUTOFILL_PUBLIC_SUFFIX_DOMAIN_MATCHING_NAME, |
| 1185 | IDS_FLAGS_PASSWORD_AUTOFILL_PUBLIC_SUFFIX_DOMAIN_MATCHING_DESCRIPTION, |
[email protected] | e48aec7 | 2014-01-31 13:53:06 | [diff] [blame] | 1186 | kOsAll, |
[email protected] | 283cc56 | 2013-07-18 08:25:43 | [diff] [blame] | 1187 | ENABLE_DISABLE_VALUE_TYPE( |
| 1188 | switches::kEnablePasswordAutofillPublicSuffixDomainMatching, |
| 1189 | switches::kDisablePasswordAutofillPublicSuffixDomainMatching) |
[email protected] | 17b9c74 | 2013-06-22 13:48:42 | [diff] [blame] | 1190 | }, |
| 1191 | { |
[email protected] | 76f7d488 | 2012-10-26 21:09:22 | [diff] [blame] | 1192 | "enable-deferred-image-decoding", |
| 1193 | IDS_FLAGS_ENABLE_DEFERRED_IMAGE_DECODING_NAME, |
| 1194 | IDS_FLAGS_ENABLE_DEFERRED_IMAGE_DECODING_DESCRIPTION, |
[email protected] | 76f7d488 | 2012-10-26 21:09:22 | [diff] [blame] | 1195 | kOsMac | kOsLinux | kOsCrOS, |
[email protected] | 76f7d488 | 2012-10-26 21:09:22 | [diff] [blame] | 1196 | SINGLE_VALUE_TYPE(switches::kEnableDeferredImageDecoding) |
| 1197 | }, |
| 1198 | { |
[email protected] | 075543d | 2012-10-24 01:29:14 | [diff] [blame] | 1199 | "performance-monitor-gathering", |
| 1200 | IDS_FLAGS_PERFORMANCE_MONITOR_GATHERING_NAME, |
| 1201 | IDS_FLAGS_PERFORMANCE_MONITOR_GATHERING_DESCRIPTION, |
| 1202 | kOsAll, |
| 1203 | SINGLE_VALUE_TYPE(switches::kPerformanceMonitorGathering) |
| 1204 | }, |
[email protected] | 783d5bb | 2012-10-24 03:47:14 | [diff] [blame] | 1205 | { |
[email protected] | 4547698 | 2013-10-01 03:22:29 | [diff] [blame] | 1206 | "wallet-service-use-sandbox", |
| 1207 | IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_NAME, |
| 1208 | IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_DESCRIPTION, |
| 1209 | kOsCrOS | kOsWin | kOsMac, |
| 1210 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 1211 | autofill::switches::kWalletServiceUseSandbox, "1", |
| 1212 | autofill::switches::kWalletServiceUseSandbox, "0") |
[email protected] | db3178c | 2013-03-21 14:54:54 | [diff] [blame] | 1213 | }, |
| 1214 | { |
[email protected] | 6e6efe4 | 2013-01-30 00:04:50 | [diff] [blame] | 1215 | "enable-interactive-autocomplete", |
| 1216 | IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_NAME, |
| 1217 | IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_DESCRIPTION, |
[email protected] | 2a9b0c1 | 2013-08-15 02:38:39 | [diff] [blame] | 1218 | kOsWin | kOsCrOS | kOsAndroid | kOsMac, |
[email protected] | 000f3ad | 2013-05-16 02:19:17 | [diff] [blame] | 1219 | ENABLE_DISABLE_VALUE_TYPE( |
| 1220 | autofill::switches::kEnableInteractiveAutocomplete, |
| 1221 | autofill::switches::kDisableInteractiveAutocomplete) |
[email protected] | 6e6efe4 | 2013-01-30 00:04:50 | [diff] [blame] | 1222 | }, |
[email protected] | 177260c | 2013-04-24 01:47:38 | [diff] [blame] | 1223 | #if defined(USE_AURA) |
| 1224 | { |
| 1225 | "overscroll-history-navigation", |
| 1226 | IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_NAME, |
| 1227 | IDS_FLAGS_OVERSCROLL_HISTORY_NAVIGATION_DESCRIPTION, |
| 1228 | kOsAll, |
[email protected] | c38e980 | 2014-02-18 21:32:12 | [diff] [blame] | 1229 | MULTI_VALUE_TYPE(kOverscrollHistoryNavigationChoices) |
[email protected] | 177260c | 2013-04-24 01:47:38 | [diff] [blame] | 1230 | }, |
| 1231 | #endif |
[email protected] | edbea62 | 2012-11-28 20:39:38 | [diff] [blame] | 1232 | { |
[email protected] | 888878e8 | 2013-07-24 22:49:40 | [diff] [blame] | 1233 | "scroll-end-effect", |
| 1234 | IDS_FLAGS_SCROLL_END_EFFECT_NAME, |
| 1235 | IDS_FLAGS_SCROLL_END_EFFECT_DESCRIPTION, |
| 1236 | kOsCrOS, |
| 1237 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 1238 | switches::kScrollEndEffect, "1", |
| 1239 | switches::kScrollEndEffect, "0") |
| 1240 | }, |
| 1241 | { |
[email protected] | 0222b1b4 | 2013-07-26 09:57:00 | [diff] [blame] | 1242 | "enable-touch-side-bezels", |
| 1243 | IDS_FLAGS_ENABLE_TOUCH_SIDE_BEZELS_NAME, |
| 1244 | IDS_FLAGS_ENABLE_TOUCH_SIDE_BEZELS_DESCRIPTION, |
| 1245 | kOsCrOS, |
| 1246 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 1247 | switches::kTouchSideBezels, "1", |
| 1248 | switches::kTouchSideBezels, "0") |
| 1249 | }, |
| 1250 | { |
[email protected] | edbea62 | 2012-11-28 20:39:38 | [diff] [blame] | 1251 | "enable-touch-drag-drop", |
| 1252 | IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_NAME, |
| 1253 | IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_DESCRIPTION, |
| 1254 | kOsWin | kOsCrOS, |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 1255 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchDragDrop, |
| 1256 | switches::kDisableTouchDragDrop) |
[email protected] | edbea62 | 2012-11-28 20:39:38 | [diff] [blame] | 1257 | }, |
[email protected] | 0e2f43b6 | 2013-02-21 00:47:15 | [diff] [blame] | 1258 | { |
| 1259 | "enable-touch-editing", |
| 1260 | IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, |
| 1261 | IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, |
| 1262 | kOsCrOS, |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 1263 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, |
| 1264 | switches::kDisableTouchEditing) |
[email protected] | 0e2f43b6 | 2013-02-21 00:47:15 | [diff] [blame] | 1265 | }, |
[email protected] | 92e12dd9 | 2012-12-11 03:33:20 | [diff] [blame] | 1266 | { |
| 1267 | "enable-rich-notifications", |
| 1268 | IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_NAME, |
| 1269 | IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_DESCRIPTION, |
[email protected] | 6ac6c88 | 2013-07-01 18:42:36 | [diff] [blame] | 1270 | kOsWin | kOsMac, |
[email protected] | aee412aa | 2013-04-02 20:01:23 | [diff] [blame] | 1271 | ENABLE_DISABLE_VALUE_TYPE( |
| 1272 | message_center::switches::kEnableRichNotifications, |
| 1273 | message_center::switches::kDisableRichNotifications) |
[email protected] | 92e12dd9 | 2012-12-11 03:33:20 | [diff] [blame] | 1274 | }, |
[email protected] | 4d51c68 | 2012-12-11 11:34:55 | [diff] [blame] | 1275 | { |
[email protected] | 74dae79 | 2013-11-13 01:11:26 | [diff] [blame] | 1276 | "enable-experimental-notification-ui", |
| 1277 | IDS_FLAGS_ENABLE_EXPERIMENTAL_NOTIFICATION_UI_NAME, |
| 1278 | IDS_FLAGS_ENABLE_EXPERIMENTAL_NOTIFICATION_UI_DESCRIPTION, |
| 1279 | kOsDesktop, |
| 1280 | SINGLE_VALUE_TYPE( |
| 1281 | message_center::switches::kEnableExperimentalNotificationUI) |
| 1282 | }, |
| 1283 | { |
[email protected] | ddec1aa | 2013-04-28 23:22:45 | [diff] [blame] | 1284 | "enable-sync-synced-notifications", |
| 1285 | IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_NAME, |
| 1286 | IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_DESCRIPTION, |
[email protected] | 4316893 | 2013-05-24 06:35:18 | [diff] [blame] | 1287 | kOsDesktop, |
[email protected] | ddec1aa | 2013-04-28 23:22:45 | [diff] [blame] | 1288 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSyncSyncedNotifications, |
| 1289 | switches::kDisableSyncSyncedNotifications) |
| 1290 | }, |
[email protected] | 630a27a | 2014-01-15 08:24:09 | [diff] [blame] | 1291 | #if defined(ENABLE_APP_LIST) |
| 1292 | { |
[email protected] | 81c6c42 | 2014-03-10 20:31:42 | [diff] [blame] | 1293 | "enable-sync-app-list", |
| 1294 | IDS_FLAGS_ENABLE_SYNC_APP_LIST_NAME, |
| 1295 | IDS_FLAGS_ENABLE_SYNC_APP_LIST_DESCRIPTION, |
[email protected] | 630a27a | 2014-01-15 08:24:09 | [diff] [blame] | 1296 | kOsDesktop, |
[email protected] | 81c6c42 | 2014-03-10 20:31:42 | [diff] [blame] | 1297 | SINGLE_VALUE_TYPE(switches::kEnableSyncAppList) |
[email protected] | 630a27a | 2014-01-15 08:24:09 | [diff] [blame] | 1298 | }, |
| 1299 | #endif |
[email protected] | ddec1aa | 2013-04-28 23:22:45 | [diff] [blame] | 1300 | { |
[email protected] | a50e16a | 2013-04-25 14:07:17 | [diff] [blame] | 1301 | "disable-full-history-sync", |
[email protected] | 4d51c68 | 2012-12-11 11:34:55 | [diff] [blame] | 1302 | IDS_FLAGS_FULL_HISTORY_SYNC_NAME, |
| 1303 | IDS_FLAGS_FULL_HISTORY_SYNC_DESCRIPTION, |
| 1304 | kOsAll, |
[email protected] | a50e16a | 2013-04-25 14:07:17 | [diff] [blame] | 1305 | SINGLE_VALUE_TYPE(switches::kHistoryDisableFullHistorySync) |
[email protected] | 4d51c68 | 2012-12-11 11:34:55 | [diff] [blame] | 1306 | }, |
[email protected] | 628a69a9 | 2012-12-23 04:09:34 | [diff] [blame] | 1307 | { |
[email protected] | fd03014 | 2013-02-08 02:04:38 | [diff] [blame] | 1308 | "enable-usermedia-screen-capture", |
| 1309 | IDS_FLAGS_ENABLE_SCREEN_CAPTURE_NAME, |
| 1310 | IDS_FLAGS_ENABLE_SCREEN_CAPTURE_DESCRIPTION, |
| 1311 | kOsDesktop, |
| 1312 | SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing) |
| 1313 | }, |
[email protected] | d41cf1b | 2014-02-21 01:24:35 | [diff] [blame] | 1314 | #if defined(OS_MACOSX) |
| 1315 | { |
| 1316 | "disable-avfoundation", |
| 1317 | IDS_FLAGS_DISABLE_AVFOUNDATION_NAME, |
| 1318 | IDS_FLAGS_DISABLE_AVFOUNDATION_DESCRIPTION, |
| 1319 | kOsMac, |
| 1320 | SINGLE_VALUE_TYPE(switches::kDisableAVFoundation) |
| 1321 | }, |
| 1322 | #endif |
[email protected] | 5b93e16 | 2013-02-19 06:33:09 | [diff] [blame] | 1323 | { |
[email protected] | 9323fdd1 | 2013-02-23 00:31:36 | [diff] [blame] | 1324 | "impl-side-painting", |
| 1325 | IDS_FLAGS_IMPL_SIDE_PAINTING_NAME, |
| 1326 | IDS_FLAGS_IMPL_SIDE_PAINTING_DESCRIPTION, |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 1327 | kOsAll, |
[email protected] | 9323fdd1 | 2013-02-23 00:31:36 | [diff] [blame] | 1328 | MULTI_VALUE_TYPE(kImplSidePaintingChoices) |
| 1329 | }, |
[email protected] | a42c85f | 2013-04-04 18:15:12 | [diff] [blame] | 1330 | { |
[email protected] | 7621af2 | 2013-09-12 23:06:33 | [diff] [blame] | 1331 | "lcd-text-aa", |
| 1332 | IDS_FLAGS_LCD_TEXT_NAME, |
| 1333 | IDS_FLAGS_LCD_TEXT_DESCRIPTION, |
| 1334 | kOsDesktop, |
| 1335 | MULTI_VALUE_TYPE(kLCDTextChoices) |
| 1336 | }, |
| 1337 | { |
[email protected] | 0c04d1c | 2013-07-10 00:02:32 | [diff] [blame] | 1338 | "delegated-renderer", |
| 1339 | IDS_FLAGS_DELEGATED_RENDERER_NAME, |
| 1340 | IDS_FLAGS_DELEGATED_RENDERER_DESCRIPTION, |
[email protected] | 146e2db0 | 2014-02-06 08:11:02 | [diff] [blame] | 1341 | #ifdef USE_AURA |
| 1342 | kOsWin | kOsLinux | |
| 1343 | #endif |
| 1344 | kOsAndroid | kOsCrOS, |
[email protected] | 0c04d1c | 2013-07-10 00:02:32 | [diff] [blame] | 1345 | MULTI_VALUE_TYPE(kDelegatedRendererChoices) |
| 1346 | }, |
| 1347 | { |
[email protected] | 1c92d3e | 2013-04-18 05:31:39 | [diff] [blame] | 1348 | "enable-websocket-experimental-implementation", |
| 1349 | IDS_FLAGS_ENABLE_EXPERIMENTAL_WEBSOCKET_NAME, |
| 1350 | IDS_FLAGS_ENABLE_EXPERIMENTAL_WEBSOCKET_DESCRIPTION, |
| 1351 | kOsAll, |
| 1352 | SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebSocket) |
| 1353 | }, |
| 1354 | { |
[email protected] | a42c85f | 2013-04-04 18:15:12 | [diff] [blame] | 1355 | "max-tiles-for-interest-area", |
| 1356 | IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_NAME, |
| 1357 | IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_DESCRIPTION, |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 1358 | kOsAll, |
[email protected] | a42c85f | 2013-04-04 18:15:12 | [diff] [blame] | 1359 | MULTI_VALUE_TYPE(kMaxTilesForInterestAreaChoices) |
| 1360 | }, |
[email protected] | 7cf7ccb | 2013-04-20 02:53:08 | [diff] [blame] | 1361 | { |
| 1362 | "enable-offline-mode", |
| 1363 | IDS_FLAGS_ENABLE_OFFLINE_MODE_NAME, |
| 1364 | IDS_FLAGS_ENABLE_OFFLINE_MODE_DESCRIPTION, |
| 1365 | kOsAll, |
| 1366 | SINGLE_VALUE_TYPE(switches::kEnableOfflineCacheAccess) |
| 1367 | }, |
[email protected] | a361812 | 2013-04-26 21:15:34 | [diff] [blame] | 1368 | { |
[email protected] | 5676e748 | 2013-12-17 08:05:37 | [diff] [blame] | 1369 | "enable-offline-auto-reload", |
| 1370 | IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_NAME, |
| 1371 | IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_DESCRIPTION, |
| 1372 | kOsAll, |
| 1373 | SINGLE_VALUE_TYPE(switches::kEnableOfflineAutoReload) |
| 1374 | }, |
| 1375 | { |
[email protected] | a361812 | 2013-04-26 21:15:34 | [diff] [blame] | 1376 | "default-tile-width", |
| 1377 | IDS_FLAGS_DEFAULT_TILE_WIDTH_NAME, |
| 1378 | IDS_FLAGS_DEFAULT_TILE_WIDTH_DESCRIPTION, |
| 1379 | kOsAll, |
| 1380 | MULTI_VALUE_TYPE(kDefaultTileWidthChoices) |
| 1381 | }, |
| 1382 | { |
| 1383 | "default-tile-height", |
| 1384 | IDS_FLAGS_DEFAULT_TILE_HEIGHT_NAME, |
| 1385 | IDS_FLAGS_DEFAULT_TILE_HEIGHT_DESCRIPTION, |
| 1386 | kOsAll, |
| 1387 | MULTI_VALUE_TYPE(kDefaultTileHeightChoices) |
| 1388 | }, |
[email protected] | 8cc71d4 | 2013-03-02 17:26:08 | [diff] [blame] | 1389 | #if defined(OS_ANDROID) |
| 1390 | { |
| 1391 | "disable-gesture-requirement-for-media-playback", |
| 1392 | IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_NAME, |
| 1393 | IDS_FLAGS_DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_DESCRIPTION, |
| 1394 | kOsAndroid, |
| 1395 | SINGLE_VALUE_TYPE(switches::kDisableGestureRequirementForMediaPlayback) |
| 1396 | }, |
| 1397 | #endif |
[email protected] | 6077cab | 2013-03-11 19:36:14 | [diff] [blame] | 1398 | #if defined(ENABLE_GOOGLE_NOW) |
| 1399 | { |
| 1400 | "enable-google-now", |
| 1401 | IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_NAME, |
| 1402 | IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_DESCRIPTION, |
[email protected] | bc98b163 | 2014-02-03 23:27:37 | [diff] [blame] | 1403 | kOsDesktop, |
[email protected] | 6be0c2a | 2013-10-22 01:45:06 | [diff] [blame] | 1404 | ENABLE_DISABLE_VALUE_TYPE( |
| 1405 | switches::kEnableGoogleNowIntegration, |
| 1406 | switches::kDisableGoogleNowIntegration) |
[email protected] | 6077cab | 2013-03-11 19:36:14 | [diff] [blame] | 1407 | }, |
| 1408 | #endif |
[email protected] | 86459e2c | 2013-04-10 13:39:24 | [diff] [blame] | 1409 | #if defined(OS_CHROMEOS) |
| 1410 | { |
| 1411 | "enable-virtual-keyboard", |
| 1412 | IDS_FLAGS_ENABLE_VIRTUAL_KEYBOARD_NAME, |
| 1413 | IDS_FLAGS_ENABLE_VIRTUAL_KEYBOARD_DESCRIPTION, |
| 1414 | kOsCrOS, |
| 1415 | SINGLE_VALUE_TYPE(keyboard::switches::kEnableVirtualKeyboard) |
| 1416 | }, |
[email protected] | 8b4321e | 2013-10-25 01:16:18 | [diff] [blame] | 1417 | { |
| 1418 | "enable-swipe-selection", |
| 1419 | IDS_FLAGS_ENABLE_SWIPE_SELECTION_NAME, |
| 1420 | IDS_FLAGS_ENABLE_SWIPE_SELECTION_DESCRIPTION, |
| 1421 | kOsCrOS, |
| 1422 | SINGLE_VALUE_TYPE(keyboard::switches::kEnableSwipeSelection) |
| 1423 | }, |
[email protected] | 86459e2c | 2013-04-10 13:39:24 | [diff] [blame] | 1424 | #endif |
[email protected] | 38484df1 | 2013-04-10 16:42:03 | [diff] [blame] | 1425 | { |
| 1426 | "enable-simple-cache-backend", |
| 1427 | IDS_FLAGS_ENABLE_SIMPLE_CACHE_BACKEND_NAME, |
| 1428 | IDS_FLAGS_ENABLE_SIMPLE_CACHE_BACKEND_DESCRIPTION, |
[email protected] | a4a7108 | 2013-06-10 15:57:25 | [diff] [blame] | 1429 | kOsAll, |
[email protected] | 38484df1 | 2013-04-10 16:42:03 | [diff] [blame] | 1430 | MULTI_VALUE_TYPE(kSimpleCacheBackendChoices) |
| 1431 | }, |
[email protected] | 717e4e2 | 2013-04-10 20:52:23 | [diff] [blame] | 1432 | { |
| 1433 | "enable-tcp-fast-open", |
| 1434 | IDS_FLAGS_ENABLE_TCP_FAST_OPEN_NAME, |
| 1435 | IDS_FLAGS_ENABLE_TCP_FAST_OPEN_DESCRIPTION, |
[email protected] | d0a8a16 | 2013-04-13 01:37:11 | [diff] [blame] | 1436 | kOsLinux | kOsCrOS | kOsAndroid, |
[email protected] | 717e4e2 | 2013-04-10 20:52:23 | [diff] [blame] | 1437 | SINGLE_VALUE_TYPE(switches::kEnableTcpFastOpen) |
| 1438 | }, |
[email protected] | 8027acd | 2013-04-18 08:35:15 | [diff] [blame] | 1439 | { |
[email protected] | 58c740f | 2013-05-06 05:25:44 | [diff] [blame] | 1440 | "apps-use-native-frame", |
| 1441 | IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_NAME, |
| 1442 | IDS_FLAGS_ENABLE_NATIVE_FRAMES_FOR_APPS_DESCRIPTION, |
[email protected] | 7cccda1d | 2014-02-21 14:30:25 | [diff] [blame] | 1443 | kOsMac, |
[email protected] | 58c740f | 2013-05-06 05:25:44 | [diff] [blame] | 1444 | SINGLE_VALUE_TYPE(switches::kAppsUseNativeFrame) |
| 1445 | }, |
[email protected] | 896d86b3 | 2013-05-09 19:36:44 | [diff] [blame] | 1446 | { |
| 1447 | "enable-syncfs-directory-operation", |
| 1448 | IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_NAME, |
| 1449 | IDS_FLAGS_ENABLE_SYNC_DIRECTORY_OPERATION_DESCRIPTION, |
| 1450 | kOsAll, |
| 1451 | SINGLE_VALUE_TYPE(switches::kSyncfsEnableDirectoryOperation), |
| 1452 | }, |
[email protected] | 9486892 | 2013-09-19 18:00:55 | [diff] [blame] | 1453 | #if defined(ENABLE_MDNS) |
[email protected] | a4ed7e1 | 2013-05-24 01:00:28 | [diff] [blame] | 1454 | { |
[email protected] | 2f7992ba | 2013-09-08 23:44:57 | [diff] [blame] | 1455 | "disable-device-discovery", |
| 1456 | IDS_FLAGS_DISABLE_DEVICE_DISCOVERY_NAME, |
| 1457 | IDS_FLAGS_DISABLE_DEVICE_DISCOVERY_DESCRIPTION, |
| 1458 | kOsWin | kOsLinux | kOsCrOS, |
| 1459 | SINGLE_VALUE_TYPE(switches::kDisableDeviceDiscovery) |
[email protected] | 9f94a6c4 | 2013-07-11 18:49:15 | [diff] [blame] | 1460 | }, |
[email protected] | 9486892 | 2013-09-19 18:00:55 | [diff] [blame] | 1461 | { |
[email protected] | d394d976 | 2013-09-22 06:00:25 | [diff] [blame] | 1462 | "device-discovery-notifications", |
| 1463 | IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_NAME, |
| 1464 | IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_DESCRIPTION, |
[email protected] | 9486892 | 2013-09-19 18:00:55 | [diff] [blame] | 1465 | kOsWin | kOsLinux | kOsCrOS, |
[email protected] | d394d976 | 2013-09-22 06:00:25 | [diff] [blame] | 1466 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDeviceDiscoveryNotifications, |
| 1467 | switches::kDisableDeviceDiscoveryNotifications) |
[email protected] | 9486892 | 2013-09-19 18:00:55 | [diff] [blame] | 1468 | }, |
[email protected] | 53ffe0d | 2013-10-30 01:20:40 | [diff] [blame] | 1469 | { |
[email protected] | 780a2f13 | 2013-12-03 11:30:16 | [diff] [blame] | 1470 | "disable-privet-local-printing", |
| 1471 | IDS_FLAGS_DISABLE_PRIVET_LOCAL_PRINTING_NAME, |
| 1472 | IDS_FLAGS_DISABLE_PRIVET_LOCAL_PRINTING_DESCRIPTION, |
[email protected] | 53ffe0d | 2013-10-30 01:20:40 | [diff] [blame] | 1473 | kOsWin | kOsLinux | kOsCrOS, |
[email protected] | 780a2f13 | 2013-12-03 11:30:16 | [diff] [blame] | 1474 | SINGLE_VALUE_TYPE(switches::kDisablePrivetLocalPrinting) |
[email protected] | 53ffe0d | 2013-10-30 01:20:40 | [diff] [blame] | 1475 | }, |
[email protected] | f039239 | 2014-03-10 20:07:52 | [diff] [blame] | 1476 | { |
| 1477 | "enable-print-preview-register-promos", |
| 1478 | IDS_FLAGS_ENABLE_PRINT_PREVIEW_REGISTER_PROMOS_NAME, |
| 1479 | IDS_FLAGS_ENABLE_PRINT_PREVIEW_REGISTER_PROMOS_DESCRIPTION, |
| 1480 | kOsWin | kOsLinux | kOsCrOS, |
| 1481 | SINGLE_VALUE_TYPE(switches::kEnablePrintPreviewRegisterPromos) |
| 1482 | }, |
[email protected] | 9486892 | 2013-09-19 18:00:55 | [diff] [blame] | 1483 | #endif // ENABLE_MDNS |
[email protected] | ca53b14 | 2014-02-25 22:42:23 | [diff] [blame] | 1484 | #if defined(OS_WIN) |
| 1485 | { |
| 1486 | "enable-cloud-print-xps", |
| 1487 | IDS_FLAGS_ENABLE_CLOUD_PRINT_XPS_NAME, |
| 1488 | IDS_FLAGS_ENABLE_CLOUD_PRINT_XPS_DESCRIPTION, |
| 1489 | kOsWin, |
| 1490 | SINGLE_VALUE_TYPE(switches::kEnableCloudPrintXps) |
| 1491 | }, |
| 1492 | #endif |
[email protected] | 56d3c6e4 | 2013-05-29 11:28:01 | [diff] [blame] | 1493 | #if defined(OS_MACOSX) |
| 1494 | { |
[email protected] | a9397d6 | 2013-12-30 06:31:36 | [diff] [blame] | 1495 | "disable-app-shims", |
| 1496 | IDS_FLAGS_DISABLE_APP_SHIMS_NAME, |
| 1497 | IDS_FLAGS_DISABLE_APP_SHIMS_DESCRIPTION, |
[email protected] | cb29e16 | 2013-05-31 07:47:02 | [diff] [blame] | 1498 | kOsMac, |
[email protected] | a9397d6 | 2013-12-30 06:31:36 | [diff] [blame] | 1499 | SINGLE_VALUE_TYPE(switches::kDisableAppShims) |
[email protected] | cb29e16 | 2013-05-31 07:47:02 | [diff] [blame] | 1500 | }, |
[email protected] | 6760444 | 2013-06-15 00:04:33 | [diff] [blame] | 1501 | { |
| 1502 | "enable-simplified-fullscreen", |
| 1503 | IDS_FLAGS_ENABLE_SIMPLIFIED_FULLSCREEN_NAME, |
| 1504 | IDS_FLAGS_ENABLE_SIMPLIFIED_FULLSCREEN_DESCRIPTION, |
| 1505 | kOsMac, |
| 1506 | SINGLE_VALUE_TYPE(switches::kEnableSimplifiedFullscreen) |
| 1507 | }, |
[email protected] | 56d3c6e4 | 2013-05-29 11:28:01 | [diff] [blame] | 1508 | #endif |
[email protected] | 5fa9f74 | 2013-11-14 06:33:08 | [diff] [blame] | 1509 | #if defined(TOOLKIT_VIEWS) |
[email protected] | 1317783 | 2013-05-31 07:46:05 | [diff] [blame] | 1510 | { |
[email protected] | 6d9087b | 2013-07-30 08:25:46 | [diff] [blame] | 1511 | "omnibox-auto-completion-for-ime", |
[email protected] | 1317783 | 2013-05-31 07:46:05 | [diff] [blame] | 1512 | IDS_FLAGS_ENABLE_OMNIBOX_AUTO_COMPLETION_FOR_IME_NAME, |
| 1513 | IDS_FLAGS_ENABLE_OMNIBOX_AUTO_COMPLETION_FOR_IME_DESCRIPTION, |
[email protected] | 445f4fb6 | 2013-11-12 11:46:52 | [diff] [blame] | 1514 | kOsCrOS | kOsWin | kOsLinux, |
[email protected] | 6d9087b | 2013-07-30 08:25:46 | [diff] [blame] | 1515 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableOmniboxAutoCompletionForIme, |
| 1516 | switches::kDisableOmniboxAutoCompletionForIme) |
[email protected] | 1317783 | 2013-05-31 07:46:05 | [diff] [blame] | 1517 | }, |
| 1518 | #endif |
[email protected] | 910ecfe | 2013-06-03 23:38:14 | [diff] [blame] | 1519 | #if defined(USE_AURA) |
| 1520 | { |
| 1521 | "tab-capture-upscale-quality", |
| 1522 | IDS_FLAGS_TAB_CAPTURE_UPSCALE_QUALITY_NAME, |
| 1523 | IDS_FLAGS_TAB_CAPTURE_UPSCALE_QUALITY_DESCRIPTION, |
| 1524 | kOsAll, |
| 1525 | MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices) |
| 1526 | }, |
| 1527 | { |
| 1528 | "tab-capture-downscale-quality", |
| 1529 | IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, |
| 1530 | IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, |
| 1531 | kOsAll, |
| 1532 | MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) |
| 1533 | }, |
| 1534 | #endif |
[email protected] | 71d4f60 | 2013-06-04 23:21:10 | [diff] [blame] | 1535 | { |
[email protected] | ba7993d | 2013-11-26 23:44:56 | [diff] [blame] | 1536 | "enable-spelling-feedback-field-trial", |
| 1537 | IDS_FLAGS_ENABLE_SPELLING_FEEDBACK_FIELD_TRIAL_NAME, |
| 1538 | IDS_FLAGS_ENABLE_SPELLING_FEEDBACK_FIELD_TRIAL_DESCRIPTION, |
[email protected] | 5e099c6 | 2013-06-08 05:46:23 | [diff] [blame] | 1539 | kOsAll, |
[email protected] | ba7993d | 2013-11-26 23:44:56 | [diff] [blame] | 1540 | SINGLE_VALUE_TYPE(switches::kEnableSpellingFeedbackFieldTrial) |
[email protected] | 5e099c6 | 2013-06-08 05:46:23 | [diff] [blame] | 1541 | }, |
| 1542 | { |
[email protected] | 71d4f60 | 2013-06-04 23:21:10 | [diff] [blame] | 1543 | "enable-webgl-draft-extensions", |
| 1544 | IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME, |
| 1545 | IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION, |
| 1546 | kOsAll, |
| 1547 | SINGLE_VALUE_TYPE(switches::kEnableWebGLDraftExtensions) |
| 1548 | }, |
[email protected] | deadc49 | 2013-06-07 21:39:28 | [diff] [blame] | 1549 | { |
[email protected] | 803c48a | 2014-02-10 23:57:09 | [diff] [blame] | 1550 | "enable-html-imports", |
| 1551 | IDS_FLAGS_ENABLE_HTML_IMPORTS_NAME, |
| 1552 | IDS_FLAGS_ENABLE_HTML_IMPORTS_DESCRIPTION, |
| 1553 | kOsAll, |
| 1554 | SINGLE_VALUE_TYPE(switches::kEnableHTMLImports) |
| 1555 | }, |
| 1556 | { |
[email protected] | deadc49 | 2013-06-07 21:39:28 | [diff] [blame] | 1557 | "high-dpi-support", |
| 1558 | IDS_FLAGS_HIDPI_NAME, |
| 1559 | IDS_FLAGS_HIDPI_DESCRIPTION, |
| 1560 | kOsWin, |
[email protected] | bde885b | 2013-09-12 20:55:53 | [diff] [blame] | 1561 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(switches::kHighDPISupport, "1", |
| 1562 | switches::kHighDPISupport, "0") |
[email protected] | deadc49 | 2013-06-07 21:39:28 | [diff] [blame] | 1563 | }, |
[email protected] | 82ca421 | 2013-06-11 12:09:17 | [diff] [blame] | 1564 | { |
[email protected] | bc1697a8 | 2013-06-27 15:48:31 | [diff] [blame] | 1565 | "enable-web-midi", |
| 1566 | IDS_FLAGS_ENABLE_WEB_MIDI_NAME, |
| 1567 | IDS_FLAGS_ENABLE_WEB_MIDI_DESCRIPTION, |
[email protected] | 28e56e9 | 2014-01-03 07:52:39 | [diff] [blame] | 1568 | kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid, |
[email protected] | bc1697a8 | 2013-06-27 15:48:31 | [diff] [blame] | 1569 | SINGLE_VALUE_TYPE(switches::kEnableWebMIDI) |
| 1570 | }, |
[email protected] | 020df79 | 2013-06-29 14:26:21 | [diff] [blame] | 1571 | { |
| 1572 | "enable-new-profile-management", |
| 1573 | IDS_FLAGS_ENABLE_NEW_PROFILE_MANAGEMENT_NAME, |
| 1574 | IDS_FLAGS_ENABLE_NEW_PROFILE_MANAGEMENT_DESCRIPTION, |
[email protected] | dc6a48a8 | 2014-01-30 07:09:14 | [diff] [blame] | 1575 | kOsAndroid | kOsMac | kOsWin | kOsLinux, |
[email protected] | 020df79 | 2013-06-29 14:26:21 | [diff] [blame] | 1576 | SINGLE_VALUE_TYPE(switches::kNewProfileManagement) |
| 1577 | }, |
| 1578 | { |
[email protected] | 85777bc | 2013-12-23 00:07:06 | [diff] [blame] | 1579 | "enable-web-based-signin", |
| 1580 | IDS_FLAGS_ENABLE_WEB_BASED_SIGNIN_NAME, |
| 1581 | IDS_FLAGS_ENABLE_WEB_BASED_SIGNIN_DESCRIPTION, |
[email protected] | 2d279f7 | 2013-10-21 23:10:16 | [diff] [blame] | 1582 | kOsMac | kOsWin | kOsLinux, |
[email protected] | 85777bc | 2013-12-23 00:07:06 | [diff] [blame] | 1583 | SINGLE_VALUE_TYPE(switches::kEnableWebBasedSignin) |
[email protected] | 2d279f7 | 2013-10-21 23:10:16 | [diff] [blame] | 1584 | }, |
| 1585 | { |
[email protected] | 115d5728c | 2013-10-23 18:06:14 | [diff] [blame] | 1586 | "enable-google-profile-info", |
| 1587 | IDS_FLAGS_ENABLE_GOOGLE_PROFILE_INFO_NAME, |
| 1588 | IDS_FLAGS_ENABLE_GOOGLE_PROFILE_INFO_DESCRIPTION, |
[email protected] | a9bf7d6 | 2013-07-11 22:11:22 | [diff] [blame] | 1589 | kOsMac | kOsWin | kOsLinux, |
[email protected] | 115d5728c | 2013-10-23 18:06:14 | [diff] [blame] | 1590 | SINGLE_VALUE_TYPE(switches::kGoogleProfileInfo) |
[email protected] | 020df79 | 2013-06-29 14:26:21 | [diff] [blame] | 1591 | }, |
[email protected] | dcf6cf3 | 2013-07-03 10:53:28 | [diff] [blame] | 1592 | { |
[email protected] | 056ed709 | 2014-01-09 12:57:21 | [diff] [blame] | 1593 | "reset-app-list-install-state", |
[email protected] | a85aa33 | 2013-10-22 11:09:59 | [diff] [blame] | 1594 | IDS_FLAGS_RESET_APP_LIST_INSTALL_STATE_NAME, |
| 1595 | IDS_FLAGS_RESET_APP_LIST_INSTALL_STATE_DESCRIPTION, |
[email protected] | 7199367d | 2014-01-20 04:06:21 | [diff] [blame] | 1596 | kOsMac | kOsWin | kOsLinux, |
[email protected] | a85aa33 | 2013-10-22 11:09:59 | [diff] [blame] | 1597 | SINGLE_VALUE_TYPE(switches::kResetAppListInstallState) |
[email protected] | dcf6cf3 | 2013-07-03 10:53:28 | [diff] [blame] | 1598 | }, |
[email protected] | 919b2f8 | 2013-10-04 03:11:26 | [diff] [blame] | 1599 | #if defined(ENABLE_APP_LIST) |
| 1600 | { |
| 1601 | "enable-app-launcher-start-page", |
| 1602 | IDS_FLAGS_ENABLE_APP_LIST_START_PAGE_NAME, |
| 1603 | IDS_FLAGS_ENABLE_APP_LIST_START_PAGE_DESCRIPTION, |
| 1604 | kOsWin | kOsCrOS, |
| 1605 | SINGLE_VALUE_TYPE(switches::kShowAppListStartPage) |
| 1606 | }, |
[email protected] | 7199367d | 2014-01-20 04:06:21 | [diff] [blame] | 1607 | #if defined(OS_LINUX) |
| 1608 | { |
| 1609 | // This is compiled out on non-Linux platforms because otherwise it would be |
| 1610 | // visible on Win/Mac/CrOS but not on Linux GTK, which would be confusing. |
| 1611 | // TODO(mgiuca): Remove the #if when Aura is the default on Linux. |
| 1612 | "enable-app-list", |
| 1613 | IDS_FLAGS_ENABLE_APP_LIST_NAME, |
| 1614 | IDS_FLAGS_ENABLE_APP_LIST_DESCRIPTION, |
| 1615 | kOsLinux, |
| 1616 | SINGLE_VALUE_TYPE(switches::kEnableAppList) |
| 1617 | }, |
| 1618 | #endif |
[email protected] | fe2b77f6 | 2013-11-09 04:30:51 | [diff] [blame] | 1619 | { |
[email protected] | e332fe2 | 2014-02-25 18:10:07 | [diff] [blame] | 1620 | "disable-app-list-folder-ui", |
| 1621 | IDS_FLAGS_DISABLE_APP_LIST_FOLDER, |
| 1622 | IDS_FLAGS_DISABLE_APP_LIST_FOLDER_DESCRIPTION, |
[email protected] | 12ddacd | 2014-02-17 01:59:55 | [diff] [blame] | 1623 | kOsWin | kOsLinux | kOsCrOS, |
[email protected] | e332fe2 | 2014-02-25 18:10:07 | [diff] [blame] | 1624 | SINGLE_VALUE_TYPE(app_list::switches::kDisableFolderUI) |
[email protected] | fe2b77f6 | 2013-11-09 04:30:51 | [diff] [blame] | 1625 | }, |
[email protected] | c879b65 | 2014-01-15 17:53:16 | [diff] [blame] | 1626 | { |
[email protected] | 234d110b | 2014-01-16 22:09:15 | [diff] [blame] | 1627 | "disable-app-list-voice-search", |
| 1628 | IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH, |
| 1629 | IDS_FLAGS_DISABLE_APP_LIST_VOICE_SEARCH_DESCRIPTION, |
[email protected] | c879b65 | 2014-01-15 17:53:16 | [diff] [blame] | 1630 | kOsCrOS, |
[email protected] | 234d110b | 2014-01-16 22:09:15 | [diff] [blame] | 1631 | SINGLE_VALUE_TYPE(app_list::switches::kDisableVoiceSearch) |
[email protected] | c879b65 | 2014-01-15 17:53:16 | [diff] [blame] | 1632 | }, |
[email protected] | d6d86722 | 2014-02-06 11:09:58 | [diff] [blame] | 1633 | { |
[email protected] | adce960 | 2014-03-05 10:26:51 | [diff] [blame] | 1634 | "enable-app-list-hotword-always-on", |
| 1635 | IDS_FLAGS_ENABLE_APP_LIST_HOTWORD_ALWAYS_ON, |
| 1636 | IDS_FLAGS_ENABLE_APP_LIST_HOTWORD_ALWAYS_ON_DESCRIPTION, |
| 1637 | kOsCrOS, |
| 1638 | SINGLE_VALUE_TYPE(app_list::switches::kEnableHotwordAlwaysOn) |
| 1639 | }, |
| 1640 | { |
[email protected] | d6d86722 | 2014-02-06 11:09:58 | [diff] [blame] | 1641 | "enable-app-list-app-info", |
| 1642 | IDS_FLAGS_ENABLE_APP_INFO_IN_APP_LIST, |
| 1643 | IDS_FLAGS_ENABLE_APP_INFO_IN_APP_LIST_DESCRIPTION, |
| 1644 | kOsLinux | kOsWin | kOsCrOS, |
| 1645 | SINGLE_VALUE_TYPE(app_list::switches::kEnableAppInfo) |
| 1646 | }, |
[email protected] | 919b2f8 | 2013-10-04 03:11:26 | [diff] [blame] | 1647 | #endif |
[email protected] | d483999 | 2013-08-13 05:41:09 | [diff] [blame] | 1648 | #if defined(OS_CHROMEOS) |
| 1649 | { |
| 1650 | "disable-user-image-sync", |
| 1651 | IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_NAME, |
| 1652 | IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_DESCRIPTION, |
| 1653 | kOsCrOS, |
| 1654 | SINGLE_VALUE_TYPE(chromeos::switches::kDisableUserImageSync) |
| 1655 | }, |
| 1656 | #endif |
[email protected] | 0e38c325 | 2013-08-14 22:18:51 | [diff] [blame] | 1657 | #if defined(OS_ANDROID) |
| 1658 | { |
| 1659 | "enable-accessibility-tab-switcher", |
| 1660 | IDS_FLAGS_ENABLE_ACCESSIBILITY_TAB_SWITCHER_NAME, |
| 1661 | IDS_FLAGS_ENABLE_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION, |
| 1662 | kOsAndroid, |
| 1663 | SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher) |
[email protected] | 2e9d79f | 2013-08-16 05:45:56 | [diff] [blame] | 1664 | }, |
[email protected] | 73838417 | 2013-12-05 01:59:56 | [diff] [blame] | 1665 | { |
| 1666 | "disable-accessibility-script-injection", |
| 1667 | IDS_FLAGS_DISABLE_ACCESSIBILITY_SCRIPT_INJECTION_NAME, |
| 1668 | IDS_FLAGS_DISABLE_ACCESSIBILITY_SCRIPT_INJECTION_DESCRIPTION, |
| 1669 | kOsAndroid, |
| 1670 | // Java-only switch: ContentSwitches.DISABLE_ACCESSIBILITY_SCRIPT_INJECTION. |
| 1671 | SINGLE_VALUE_TYPE("disable-accessibility-script-injection") |
| 1672 | }, |
[email protected] | 0e38c325 | 2013-08-14 22:18:51 | [diff] [blame] | 1673 | #endif |
[email protected] | 2e9d79f | 2013-08-16 05:45:56 | [diff] [blame] | 1674 | { |
[email protected] | be2e40a | 2013-08-27 02:49:20 | [diff] [blame] | 1675 | "map-image", |
| 1676 | IDS_FLAGS_MAP_IMAGE_NAME, |
| 1677 | IDS_FLAGS_MAP_IMAGE_DESCRIPTION, |
| 1678 | kOsAll, |
| 1679 | MULTI_VALUE_TYPE(kMapImageChoices) |
[email protected] | 4fdc518f | 2013-08-28 21:37:27 | [diff] [blame] | 1680 | }, |
[email protected] | bbb4beae | 2013-09-27 17:20:31 | [diff] [blame] | 1681 | #if defined(OS_CHROMEOS) |
| 1682 | { |
[email protected] | e384a9f | 2013-11-25 11:23:37 | [diff] [blame] | 1683 | "disable-first-run-ui", |
| 1684 | IDS_FLAGS_DISABLE_FIRST_RUN_UI_NAME, |
| 1685 | IDS_FLAGS_DISABLE_FIRST_RUN_UI_DESCRIPTION, |
[email protected] | bbb4beae | 2013-09-27 17:20:31 | [diff] [blame] | 1686 | kOsCrOS, |
[email protected] | e384a9f | 2013-11-25 11:23:37 | [diff] [blame] | 1687 | SINGLE_VALUE_TYPE(chromeos::switches::kDisableFirstRunUI) |
[email protected] | bbb4beae | 2013-09-27 17:20:31 | [diff] [blame] | 1688 | }, |
[email protected] | 407d82b | 2013-12-13 11:50:59 | [diff] [blame] | 1689 | { |
| 1690 | "enable-first-run-ui-transitions", |
| 1691 | IDS_FLAGS_ENABLE_FIRST_RUN_UI_TRANSITIONS_NAME, |
| 1692 | IDS_FLAGS_ENABLE_FIRST_RUN_UI_TRANSITIONS_DESCRIPTION, |
| 1693 | kOsCrOS, |
| 1694 | SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirstRunUITransitions) |
| 1695 | }, |
[email protected] | bbb4beae | 2013-09-27 17:20:31 | [diff] [blame] | 1696 | #endif |
[email protected] | ed1aab1 | 2013-10-08 14:27:07 | [diff] [blame] | 1697 | { |
| 1698 | "disable-compositor-touch-hit-testing", |
| 1699 | IDS_FLAGS_DISABLE_COMPOSITOR_TOUCH_HIT_TESTING_NAME, |
| 1700 | IDS_FLAGS_DISABLE_COMPOSITOR_TOUCH_HIT_TESTING_DESCRIPTION, |
| 1701 | kOsAll, |
| 1702 | SINGLE_VALUE_TYPE(cc::switches::kDisableCompositorTouchHitTesting), |
| 1703 | }, |
[email protected] | 6dd2053b | 2013-10-09 16:29:54 | [diff] [blame] | 1704 | { |
[email protected] | e341590 | 2013-10-17 15:00:46 | [diff] [blame] | 1705 | "enable-accelerated-scrollable-frames", |
| 1706 | IDS_FLAGS_ENABLE_ACCELERATED_SCROLLABLE_FRAMES_NAME, |
| 1707 | IDS_FLAGS_ENABLE_ACCELERATED_SCROLLABLE_FRAMES_DESCRIPTION, |
| 1708 | kOsAll, |
| 1709 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAcceleratedScrollableFrames, |
| 1710 | switches::kDisableAcceleratedScrollableFrames) |
| 1711 | }, |
| 1712 | { |
| 1713 | "enable-composited-scrolling-for-frames", |
| 1714 | IDS_FLAGS_ENABLE_COMPOSITED_SCROLLING_FOR_FRAMES_NAME, |
| 1715 | IDS_FLAGS_ENABLE_COMPOSITED_SCROLLING_FOR_FRAMES_DESCRIPTION, |
| 1716 | kOsAll, |
| 1717 | ENABLE_DISABLE_VALUE_TYPE(switches::kEnableCompositedScrollingForFrames, |
| 1718 | switches::kDisableCompositedScrollingForFrames) |
| 1719 | }, |
| 1720 | { |
[email protected] | f95e6df | 2013-10-11 13:05:17 | [diff] [blame] | 1721 | "enable-streamlined-hosted-apps", |
| 1722 | IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_NAME, |
| 1723 | IDS_FLAGS_ENABLE_STREAMLINED_HOSTED_APPS_DESCRIPTION, |
[email protected] | abe7f872 | 2013-12-13 11:38:06 | [diff] [blame] | 1724 | kOsWin | kOsCrOS | kOsLinux, |
[email protected] | f95e6df | 2013-10-11 13:05:17 | [diff] [blame] | 1725 | SINGLE_VALUE_TYPE(switches::kEnableStreamlinedHostedApps) |
| 1726 | }, |
[email protected] | a0ef521 | 2013-10-15 18:08:26 | [diff] [blame] | 1727 | { |
[email protected] | 912576e | 2013-10-21 10:33:13 | [diff] [blame] | 1728 | "enable-ephemeral-apps", |
| 1729 | IDS_FLAGS_ENABLE_EPHEMERAL_APPS_NAME, |
| 1730 | IDS_FLAGS_ENABLE_EPHEMERAL_APPS_DESCRIPTION, |
[email protected] | b1004995 | 2013-11-28 07:06:26 | [diff] [blame] | 1731 | kOsWin | kOsLinux | kOsCrOS, |
[email protected] | 912576e | 2013-10-21 10:33:13 | [diff] [blame] | 1732 | SINGLE_VALUE_TYPE(switches::kEnableEphemeralApps) |
| 1733 | }, |
| 1734 | { |
[email protected] | 5ec6705 | 2013-12-19 05:40:21 | [diff] [blame] | 1735 | "enable-linkable-ephemeral-apps", |
| 1736 | IDS_FLAGS_ENABLE_LINKABLE_EPHEMERAL_APPS_NAME, |
| 1737 | IDS_FLAGS_ENABLE_LINKABLE_EPHEMERAL_APPS_DESCRIPTION, |
| 1738 | kOsWin | kOsLinux | kOsCrOS, |
| 1739 | SINGLE_VALUE_TYPE(switches::kEnableLinkableEphemeralApps) |
| 1740 | }, |
| 1741 | { |
[email protected] | a0ef521 | 2013-10-15 18:08:26 | [diff] [blame] | 1742 | "enable-service-worker", |
| 1743 | IDS_FLAGS_ENABLE_SERVICE_WORKER_NAME, |
| 1744 | IDS_FLAGS_ENABLE_SERVICE_WORKER_DESCRIPTION, |
| 1745 | kOsAll, |
| 1746 | SINGLE_VALUE_TYPE(switches::kEnableServiceWorker) |
| 1747 | }, |
[email protected] | dfb66c52 | 2013-10-22 19:46:32 | [diff] [blame] | 1748 | #if defined(OS_ANDROID) |
| 1749 | { |
| 1750 | "disable-click-delay", |
| 1751 | IDS_FLAGS_DISABLE_CLICK_DELAY_NAME, |
| 1752 | IDS_FLAGS_DISABLE_CLICK_DELAY_DESCRIPTION, |
| 1753 | kOsAndroid, |
| 1754 | // Java-only switch: CommandLine.DISABLE_CLICK_DELAY |
| 1755 | SINGLE_VALUE_TYPE("disable-click-delay") |
| 1756 | }, |
| 1757 | #endif |
[email protected] | 5a60659 | 2014-01-31 10:32:31 | [diff] [blame] | 1758 | #if defined(OS_MACOSX) |
[email protected] | c2c84ab | 2013-11-18 03:05:09 | [diff] [blame] | 1759 | { |
| 1760 | "enable-translate-new-ux", |
| 1761 | IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME, |
| 1762 | IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION, |
[email protected] | 5a60659 | 2014-01-31 10:32:31 | [diff] [blame] | 1763 | kOsMac, |
[email protected] | c2c84ab | 2013-11-18 03:05:09 | [diff] [blame] | 1764 | SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX) |
| 1765 | }, |
[email protected] | 5a60659 | 2014-01-31 10:32:31 | [diff] [blame] | 1766 | #endif |
[email protected] | c4f51d2 | 2013-11-05 03:11:26 | [diff] [blame] | 1767 | #if defined(TOOLKIT_VIEWS) |
| 1768 | { |
[email protected] | 88b47ad7 | 2013-11-21 03:34:38 | [diff] [blame] | 1769 | "disable-views-rect-based-targeting", // FLAGS:RECORD_UMA |
| 1770 | IDS_FLAGS_DISABLE_VIEWS_RECT_BASED_TARGETING_NAME, |
| 1771 | IDS_FLAGS_DISABLE_VIEWS_RECT_BASED_TARGETING_DESCRIPTION, |
[email protected] | c4f51d2 | 2013-11-05 03:11:26 | [diff] [blame] | 1772 | kOsCrOS | kOsWin, |
[email protected] | 88b47ad7 | 2013-11-21 03:34:38 | [diff] [blame] | 1773 | SINGLE_VALUE_TYPE(views::switches::kDisableViewsRectBasedTargeting) |
[email protected] | c4f51d2 | 2013-11-05 03:11:26 | [diff] [blame] | 1774 | }, |
| 1775 | #endif |
[email protected] | 9f26807 | 2013-11-07 00:02:15 | [diff] [blame] | 1776 | { |
| 1777 | "enable-apps-show-on-first-paint", |
| 1778 | IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_NAME, |
| 1779 | IDS_FLAGS_ENABLE_APPS_SHOW_ON_FIRST_PAINT_DESCRIPTION, |
| 1780 | kOsDesktop, |
| 1781 | SINGLE_VALUE_TYPE(switches::kEnableAppsShowOnFirstPaint) |
| 1782 | }, |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 1783 | { |
[email protected] | 4d7552f | 2014-03-04 04:53:33 | [diff] [blame] | 1784 | "enhanced-bookmarks-experiment", |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 1785 | IDS_FLAGS_ENABLE_ENHANCED_BOOKMARKS_NAME, |
| 1786 | IDS_FLAGS_ENABLE_ENHANCED_BOOKMARKS_DESCRIPTION, |
| 1787 | kOsDesktop, |
[email protected] | 4d7552f | 2014-03-04 04:53:33 | [diff] [blame] | 1788 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 1789 | switches::kEnhancedBookmarksExperiment, "1", |
| 1790 | switches::kEnhancedBookmarksExperiment, "0") |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 1791 | }, |
[email protected] | d5874f1 | 2013-12-05 04:30:00 | [diff] [blame] | 1792 | #if defined(OS_ANDROID) |
| 1793 | { |
| 1794 | "enable-zero-suggest-experiment", |
| 1795 | IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_NAME, |
| 1796 | IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_DESCRIPTION, |
| 1797 | kOsAndroid, |
| 1798 | MULTI_VALUE_TYPE(kZeroSuggestExperimentsChoices) |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 1799 | }, |
[email protected] | d5874f1 | 2013-12-05 04:30:00 | [diff] [blame] | 1800 | #endif |
[email protected] | 1a82f737 | 2013-12-06 12:46:52 | [diff] [blame] | 1801 | { |
| 1802 | "num-raster-threads", |
| 1803 | IDS_FLAGS_NUM_RASTER_THREADS_NAME, |
| 1804 | IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, |
| 1805 | kOsAll, |
| 1806 | MULTI_VALUE_TYPE(kNumRasterThreadsChoices) |
[email protected] | dc920d6 | 2013-12-13 22:12:47 | [diff] [blame] | 1807 | }, |
| 1808 | { |
| 1809 | "origin-chip", |
| 1810 | IDS_FLAGS_ORIGIN_CHIP_NAME, |
| 1811 | IDS_FLAGS_ORIGIN_CHIP_DESCRIPTION, |
| 1812 | kOsCrOS | kOsWin, |
[email protected] | 78dd09e | 2014-01-12 02:41:46 | [diff] [blame] | 1813 | MULTI_VALUE_TYPE(kOriginChipChoices) |
[email protected] | dc920d6 | 2013-12-13 22:12:47 | [diff] [blame] | 1814 | }, |
| 1815 | { |
[email protected] | 7a54bf4b | 2014-02-06 19:21:54 | [diff] [blame] | 1816 | "origin-chip-in-omnibox", |
| 1817 | IDS_FLAGS_ORIGIN_CHIP_V2_NAME, |
| 1818 | IDS_FLAGS_ORIGIN_CHIP_V2_DESCRIPTION, |
| 1819 | kOsCrOS | kOsMac | kOsWin, |
| 1820 | MULTI_VALUE_TYPE(kOriginChipV2Choices) |
| 1821 | }, |
| 1822 | { |
[email protected] | dc920d6 | 2013-12-13 22:12:47 | [diff] [blame] | 1823 | "search-button-in-omnibox", |
| 1824 | IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_NAME, |
| 1825 | IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, |
| 1826 | kOsCrOS | kOsMac | kOsWin, |
| 1827 | MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) |
[email protected] | 58bc1c3 | 2013-12-16 22:52:07 | [diff] [blame] | 1828 | }, |
| 1829 | { |
[email protected] | b785898a | 2014-02-05 06:54:43 | [diff] [blame] | 1830 | "disable-ignore-autocomplete-off", |
| 1831 | IDS_FLAGS_DISABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, |
| 1832 | IDS_FLAGS_DISABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, |
[email protected] | 58bc1c3 | 2013-12-16 22:52:07 | [diff] [blame] | 1833 | kOsAll, |
[email protected] | b785898a | 2014-02-05 06:54:43 | [diff] [blame] | 1834 | SINGLE_VALUE_TYPE(autofill::switches::kDisableIgnoreAutocompleteOff) |
[email protected] | 7cffac7 | 2013-12-20 20:21:50 | [diff] [blame] | 1835 | }, |
| 1836 | #if defined(USE_AURA) || defined(OS_WIN) |
| 1837 | { |
| 1838 | "enable-save-password-bubble", |
| 1839 | IDS_FLAGS_ENABLE_PASSWORD_BUBBLE_NAME, |
| 1840 | IDS_FLAGS_ENABLE_PASSWORD_BUBBLE_DESCRIPTION, |
| 1841 | kOsWin | kOsCrOS, |
| 1842 | SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) |
[email protected] | cc1228f | 2014-01-14 00:52:30 | [diff] [blame] | 1843 | }, |
[email protected] | 24ad5878 | 2014-01-23 23:43:45 | [diff] [blame] | 1844 | { |
| 1845 | "enable-permissions-bubbles", |
| 1846 | IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_NAME, |
| 1847 | IDS_FLAGS_ENABLE_PERMISSIONS_BUBBLES_DESCRIPTION, |
| 1848 | kOsCrOS | kOsWin, |
| 1849 | SINGLE_VALUE_TYPE(switches::kEnablePermissionsBubbles) |
| 1850 | }, |
| 1851 | #endif |
[email protected] | 4d11b08b | 2014-01-27 22:19:07 | [diff] [blame] | 1852 | { |
| 1853 | "notification-center-tray-behavior", |
| 1854 | IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_NAME, |
| 1855 | IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_DESCRIPTION, |
| 1856 | kOsMac, |
| 1857 | MULTI_VALUE_TYPE(kNotificationCenterTrayBehaviorChoices) |
| 1858 | }, |
[email protected] | 1231adf | 2014-01-31 02:22:33 | [diff] [blame] | 1859 | { |
| 1860 | "out-of-process-pdf", |
| 1861 | IDS_FLAGS_OUT_OF_PROCESS_PDF_NAME, |
| 1862 | IDS_FLAGS_OUT_OF_PROCESS_PDF_DESCRIPTION, |
| 1863 | kOsDesktop, |
| 1864 | SINGLE_VALUE_TYPE(switches::kOutOfProcessPdf) |
| 1865 | }, |
[email protected] | 181624c | 2014-02-04 17:03:34 | [diff] [blame] | 1866 | #if defined(OS_ANDROID) |
| 1867 | { |
[email protected] | 7073b188 | 2014-02-11 23:24:46 | [diff] [blame] | 1868 | "enable-fast-text-autosizing", |
| 1869 | IDS_FLAGS_ENABLE_FAST_TEXT_AUTOSIZING_NAME, |
| 1870 | IDS_FLAGS_ENABLE_FAST_TEXT_AUTOSIZING_DESCRIPTION, |
| 1871 | kOsAndroid, |
| 1872 | SINGLE_VALUE_TYPE(switches::kEnableFastTextAutosizing) |
| 1873 | }, |
[email protected] | 30a8cec9 | 2014-02-24 10:09:09 | [diff] [blame] | 1874 | { |
[email protected] | 276bdfa5 | 2014-02-24 14:03:09 | [diff] [blame] | 1875 | "disable-cast", |
| 1876 | IDS_FLAGS_DISABLE_CAST_NAME, |
| 1877 | IDS_FLAGS_DISABLE_CAST_DESCRIPTION, |
[email protected] | 30a8cec9 | 2014-02-24 10:09:09 | [diff] [blame] | 1878 | kOsAndroid, |
[email protected] | 276bdfa5 | 2014-02-24 14:03:09 | [diff] [blame] | 1879 | SINGLE_VALUE_TYPE(switches::kDisableCast) |
[email protected] | 30a8cec9 | 2014-02-24 10:09:09 | [diff] [blame] | 1880 | }, |
[email protected] | 181624c | 2014-02-04 17:03:34 | [diff] [blame] | 1881 | #endif |
[email protected] | 99af938 | 2014-02-12 09:02:55 | [diff] [blame] | 1882 | { |
| 1883 | "prefetch-search-results", |
| 1884 | IDS_FLAGS_PREFETCH_SEARCH_RESULTS_NAME, |
| 1885 | IDS_FLAGS_PREFETCH_SEARCH_RESULTS_DESCRIPTION, |
| 1886 | kOsDesktop, |
| 1887 | SINGLE_VALUE_TYPE(switches::kPrefetchSearchResults) |
| 1888 | }, |
[email protected] | 9bd7657 | 2014-02-17 05:17:31 | [diff] [blame] | 1889 | #if defined(ENABLE_APP_LIST) |
| 1890 | { |
| 1891 | "enable-experimental-app-list", |
| 1892 | IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_NAME, |
| 1893 | IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_DESCRIPTION, |
| 1894 | kOsWin | kOsLinux | kOsCrOS, |
| 1895 | SINGLE_VALUE_TYPE(app_list::switches::kEnableExperimentalAppList) |
| 1896 | }, |
| 1897 | #endif |
[email protected] | f42cffb | 2014-03-08 18:03:25 | [diff] [blame] | 1898 | { |
| 1899 | "touch-scrolling-mode", |
| 1900 | IDS_FLAGS_TOUCH_SCROLLING_MODE_NAME, |
| 1901 | IDS_FLAGS_TOUCH_SCROLLING_MODE_DESCRIPTION, |
| 1902 | kOsWin | kOsLinux | kOsCrOS | kOsAndroid, |
| 1903 | MULTI_VALUE_TYPE(kTouchScrollingModeChoices) |
| 1904 | }, |
[email protected] | a0e4b07 | 2011-08-17 01:47:07 | [diff] [blame] | 1905 | }; |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1906 | |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 1907 | const Experiment* experiments = kExperiments; |
| 1908 | size_t num_experiments = arraysize(kExperiments); |
| 1909 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1910 | // Stores and encapsulates the little state that about:flags has. |
| 1911 | class FlagsState { |
| 1912 | public: |
| 1913 | FlagsState() : needs_restart_(false) {} |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 1914 | void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 1915 | CommandLine* command_line, |
| 1916 | SentinelsMode sentinels); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1917 | bool IsRestartNeededToCommitChanges(); |
| 1918 | void SetExperimentEnabled( |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 1919 | FlagsStorage* flags_storage, |
| 1920 | const std::string& internal_name, |
| 1921 | bool enable); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1922 | void RemoveFlagsSwitches( |
| 1923 | std::map<std::string, CommandLine::StringType>* switch_list); |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 1924 | void ResetAllFlags(FlagsStorage* flags_storage); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1925 | void reset(); |
| 1926 | |
| 1927 | // Returns the singleton instance of this class |
[email protected] | 8e8bb6d | 2010-12-13 08:18:55 | [diff] [blame] | 1928 | static FlagsState* GetInstance() { |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1929 | return Singleton<FlagsState>::get(); |
| 1930 | } |
| 1931 | |
| 1932 | private: |
| 1933 | bool needs_restart_; |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 1934 | std::map<std::string, std::string> flags_switches_; |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 1935 | |
| 1936 | DISALLOW_COPY_AND_ASSIGN(FlagsState); |
| 1937 | }; |
| 1938 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 1939 | // Adds the internal names for the specified experiment to |names|. |
| 1940 | void AddInternalName(const Experiment& e, std::set<std::string>* names) { |
| 1941 | if (e.type == Experiment::SINGLE_VALUE) { |
| 1942 | names->insert(e.internal_name); |
| 1943 | } else { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 1944 | DCHECK(e.type == Experiment::MULTI_VALUE || |
| 1945 | e.type == Experiment::ENABLE_DISABLE_VALUE); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 1946 | for (int i = 0; i < e.num_choices; ++i) |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 1947 | names->insert(e.NameForChoice(i)); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 1948 | } |
| 1949 | } |
| 1950 | |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 1951 | // Confirms that an experiment is valid, used in a DCHECK in |
| 1952 | // SanitizeList below. |
| 1953 | bool ValidateExperiment(const Experiment& e) { |
| 1954 | switch (e.type) { |
| 1955 | case Experiment::SINGLE_VALUE: |
| 1956 | DCHECK_EQ(0, e.num_choices); |
| 1957 | DCHECK(!e.choices); |
| 1958 | break; |
| 1959 | case Experiment::MULTI_VALUE: |
| 1960 | DCHECK_GT(e.num_choices, 0); |
| 1961 | DCHECK(e.choices); |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 1962 | DCHECK(e.choices[0].command_line_switch); |
| 1963 | DCHECK_EQ('\0', e.choices[0].command_line_switch[0]); |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 1964 | break; |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 1965 | case Experiment::ENABLE_DISABLE_VALUE: |
| 1966 | DCHECK_EQ(3, e.num_choices); |
| 1967 | DCHECK(!e.choices); |
| 1968 | DCHECK(e.command_line_switch); |
| 1969 | DCHECK(e.command_line_value); |
| 1970 | DCHECK(e.disable_command_line_switch); |
| 1971 | DCHECK(e.disable_command_line_value); |
| 1972 | break; |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 1973 | default: |
| 1974 | NOTREACHED(); |
| 1975 | } |
| 1976 | return true; |
| 1977 | } |
| 1978 | |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1979 | // Removes all experiments from prefs::kEnabledLabsExperiments that are |
| 1980 | // unknown, to prevent this list to become very long as experiments are added |
| 1981 | // and removed. |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 1982 | void SanitizeList(FlagsStorage* flags_storage) { |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1983 | std::set<std::string> known_experiments; |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 1984 | for (size_t i = 0; i < num_experiments; ++i) { |
| 1985 | DCHECK(ValidateExperiment(experiments[i])); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 1986 | AddInternalName(experiments[i], &known_experiments); |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 1987 | } |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1988 | |
[email protected] | 07d666d | 2013-07-21 23:56:26 | [diff] [blame] | 1989 | std::set<std::string> enabled_experiments = flags_storage->GetFlags(); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1990 | |
| 1991 | std::set<std::string> new_enabled_experiments; |
| 1992 | std::set_intersection( |
| 1993 | known_experiments.begin(), known_experiments.end(), |
| 1994 | enabled_experiments.begin(), enabled_experiments.end(), |
| 1995 | std::inserter(new_enabled_experiments, new_enabled_experiments.begin())); |
| 1996 | |
[email protected] | 07d666d | 2013-07-21 23:56:26 | [diff] [blame] | 1997 | if (new_enabled_experiments != enabled_experiments) |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 1998 | flags_storage->SetFlags(new_enabled_experiments); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 1999 | } |
| 2000 | |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 2001 | void GetSanitizedEnabledFlags( |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2002 | FlagsStorage* flags_storage, std::set<std::string>* result) { |
| 2003 | SanitizeList(flags_storage); |
| 2004 | *result = flags_storage->GetFlags(); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2005 | } |
| 2006 | |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 2007 | bool SkipConditionalExperiment(const Experiment& experiment) { |
[email protected] | 4d7552f | 2014-03-04 04:53:33 | [diff] [blame] | 2008 | if (experiment.internal_name == |
| 2009 | std::string("enhanced-bookmarks-experiment")) { |
| 2010 | CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 2011 | // Dont't skip experiment if it has non default value. |
| 2012 | // It means user selected it. |
| 2013 | if (command_line->HasSwitch(switches::kEnhancedBookmarksExperiment)) |
| 2014 | return false; |
| 2015 | |
[email protected] | 1153455 | 2013-12-05 02:09:30 | [diff] [blame] | 2016 | return !IsEnhancedBookmarksExperimentEnabled(); |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 2017 | } |
[email protected] | 4d7552f | 2014-03-04 04:53:33 | [diff] [blame] | 2018 | |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 2019 | return false; |
| 2020 | } |
| 2021 | |
| 2022 | |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2023 | // Variant of GetSanitizedEnabledFlags that also removes any flags that aren't |
| 2024 | // enabled on the current platform. |
| 2025 | void GetSanitizedEnabledFlagsForCurrentPlatform( |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2026 | FlagsStorage* flags_storage, std::set<std::string>* result) { |
| 2027 | GetSanitizedEnabledFlags(flags_storage, result); |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2028 | |
| 2029 | // Filter out any experiments that aren't enabled on the current platform. We |
| 2030 | // don't remove these from prefs else syncing to a platform with a different |
| 2031 | // set of experiments would be lossy. |
| 2032 | std::set<std::string> platform_experiments; |
| 2033 | int current_platform = GetCurrentPlatform(); |
| 2034 | for (size_t i = 0; i < num_experiments; ++i) { |
| 2035 | if (experiments[i].supported_platforms & current_platform) |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2036 | AddInternalName(experiments[i], &platform_experiments); |
[email protected] | 37736bd | 2013-04-18 11:53:58 | [diff] [blame] | 2037 | #if defined(OS_CHROMEOS) |
| 2038 | if (experiments[i].supported_platforms & kOsCrOSOwnerOnly) |
| 2039 | AddInternalName(experiments[i], &platform_experiments); |
| 2040 | #endif |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2041 | } |
| 2042 | |
| 2043 | std::set<std::string> new_enabled_experiments; |
| 2044 | std::set_intersection( |
| 2045 | platform_experiments.begin(), platform_experiments.end(), |
| 2046 | result->begin(), result->end(), |
| 2047 | std::inserter(new_enabled_experiments, new_enabled_experiments.begin())); |
| 2048 | |
| 2049 | result->swap(new_enabled_experiments); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2050 | } |
| 2051 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2052 | // Returns the Value representing the choice data in the specified experiment. |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 2053 | base::Value* CreateChoiceData( |
| 2054 | const Experiment& experiment, |
| 2055 | const std::set<std::string>& enabled_experiments) { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2056 | DCHECK(experiment.type == Experiment::MULTI_VALUE || |
| 2057 | experiment.type == Experiment::ENABLE_DISABLE_VALUE); |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 2058 | base::ListValue* result = new base::ListValue; |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2059 | for (int i = 0; i < experiment.num_choices; ++i) { |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 2060 | base::DictionaryValue* value = new base::DictionaryValue; |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2061 | const std::string name = experiment.NameForChoice(i); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2062 | value->SetString("internal_name", name); |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2063 | value->SetString("description", experiment.DescriptionForChoice(i)); |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2064 | value->SetBoolean("selected", enabled_experiments.count(name) > 0); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2065 | result->Append(value); |
| 2066 | } |
| 2067 | return result; |
| 2068 | } |
| 2069 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2070 | } // namespace |
| 2071 | |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2072 | std::string Experiment::NameForChoice(int index) const { |
| 2073 | DCHECK(type == Experiment::MULTI_VALUE || |
| 2074 | type == Experiment::ENABLE_DISABLE_VALUE); |
| 2075 | DCHECK_LT(index, num_choices); |
| 2076 | return std::string(internal_name) + testing::kMultiSeparator + |
| 2077 | base::IntToString(index); |
| 2078 | } |
| 2079 | |
[email protected] | 9692015 | 2013-12-04 21:00:16 | [diff] [blame] | 2080 | base::string16 Experiment::DescriptionForChoice(int index) const { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2081 | DCHECK(type == Experiment::MULTI_VALUE || |
| 2082 | type == Experiment::ENABLE_DISABLE_VALUE); |
| 2083 | DCHECK_LT(index, num_choices); |
| 2084 | int description_id; |
| 2085 | if (type == Experiment::ENABLE_DISABLE_VALUE) { |
| 2086 | const int kEnableDisableDescriptionIds[] = { |
| 2087 | IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, |
| 2088 | IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 2089 | IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 2090 | }; |
| 2091 | description_id = kEnableDisableDescriptionIds[index]; |
| 2092 | } else { |
| 2093 | description_id = choices[index].description_id; |
| 2094 | } |
| 2095 | return l10n_util::GetStringUTF16(description_id); |
| 2096 | } |
| 2097 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2098 | void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 2099 | CommandLine* command_line, |
| 2100 | SentinelsMode sentinels) { |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2101 | FlagsState::GetInstance()->ConvertFlagsToSwitches(flags_storage, |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 2102 | command_line, |
| 2103 | sentinels); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2104 | } |
| 2105 | |
[email protected] | 6d98abf | 2013-06-17 23:35:51 | [diff] [blame] | 2106 | bool AreSwitchesIdenticalToCurrentCommandLine( |
| 2107 | const CommandLine& new_cmdline, const CommandLine& active_cmdline) { |
| 2108 | std::set<CommandLine::StringType> new_flags = |
| 2109 | ExtractFlagsFromCommandLine(new_cmdline); |
| 2110 | std::set<CommandLine::StringType> active_flags = |
| 2111 | ExtractFlagsFromCommandLine(active_cmdline); |
| 2112 | |
| 2113 | // Needed because std::equal doesn't check if the 2nd set is empty. |
| 2114 | if (new_flags.size() != active_flags.size()) |
| 2115 | return false; |
| 2116 | |
| 2117 | return std::equal(new_flags.begin(), new_flags.end(), active_flags.begin()); |
| 2118 | } |
| 2119 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2120 | void GetFlagsExperimentsData(FlagsStorage* flags_storage, |
[email protected] | ee28495a | 2013-05-20 04:10:52 | [diff] [blame] | 2121 | FlagAccess access, |
| 2122 | base::ListValue* supported_experiments, |
| 2123 | base::ListValue* unsupported_experiments) { |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2124 | std::set<std::string> enabled_experiments; |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2125 | GetSanitizedEnabledFlags(flags_storage, &enabled_experiments); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2126 | |
| 2127 | int current_platform = GetCurrentPlatform(); |
| 2128 | |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2129 | for (size_t i = 0; i < num_experiments; ++i) { |
| 2130 | const Experiment& experiment = experiments[i]; |
[email protected] | 1227163 | 2013-11-26 03:06:39 | [diff] [blame] | 2131 | if (SkipConditionalExperiment(experiment)) |
| 2132 | continue; |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2133 | |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 2134 | base::DictionaryValue* data = new base::DictionaryValue(); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2135 | data->SetString("internal_name", experiment.internal_name); |
| 2136 | data->SetString("name", |
| 2137 | l10n_util::GetStringUTF16(experiment.visible_name_id)); |
| 2138 | data->SetString("description", |
| 2139 | l10n_util::GetStringUTF16( |
| 2140 | experiment.visible_description_id)); |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 2141 | |
[email protected] | 5bcdd99d | 2013-12-23 18:28:30 | [diff] [blame] | 2142 | base::ListValue* supported_platforms = new base::ListValue(); |
[email protected] | cc3e205 | 2011-12-20 01:01:40 | [diff] [blame] | 2143 | AddOsStrings(experiment.supported_platforms, supported_platforms); |
| 2144 | data->Set("supported_platforms", supported_platforms); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2145 | |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2146 | switch (experiment.type) { |
| 2147 | case Experiment::SINGLE_VALUE: |
| 2148 | data->SetBoolean( |
| 2149 | "enabled", |
| 2150 | enabled_experiments.count(experiment.internal_name) > 0); |
| 2151 | break; |
| 2152 | case Experiment::MULTI_VALUE: |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2153 | case Experiment::ENABLE_DISABLE_VALUE: |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2154 | data->Set("choices", CreateChoiceData(experiment, enabled_experiments)); |
| 2155 | break; |
| 2156 | default: |
| 2157 | NOTREACHED(); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2158 | } |
| 2159 | |
[email protected] | ee28495a | 2013-05-20 04:10:52 | [diff] [blame] | 2160 | bool supported = (experiment.supported_platforms & current_platform) != 0; |
| 2161 | #if defined(OS_CHROMEOS) |
| 2162 | if (access == kOwnerAccessToFlags && |
| 2163 | (experiment.supported_platforms & kOsCrOSOwnerOnly) != 0) { |
| 2164 | supported = true; |
| 2165 | } |
| 2166 | #endif |
| 2167 | if (supported) |
| 2168 | supported_experiments->Append(data); |
| 2169 | else |
| 2170 | unsupported_experiments->Append(data); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2171 | } |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2172 | } |
| 2173 | |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2174 | bool IsRestartNeededToCommitChanges() { |
[email protected] | 8e8bb6d | 2010-12-13 08:18:55 | [diff] [blame] | 2175 | return FlagsState::GetInstance()->IsRestartNeededToCommitChanges(); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2176 | } |
| 2177 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2178 | void SetExperimentEnabled(FlagsStorage* flags_storage, |
| 2179 | const std::string& internal_name, |
| 2180 | bool enable) { |
| 2181 | FlagsState::GetInstance()->SetExperimentEnabled(flags_storage, |
| 2182 | internal_name, enable); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2183 | } |
| 2184 | |
| 2185 | void RemoveFlagsSwitches( |
| 2186 | std::map<std::string, CommandLine::StringType>* switch_list) { |
[email protected] | 8e8bb6d | 2010-12-13 08:18:55 | [diff] [blame] | 2187 | FlagsState::GetInstance()->RemoveFlagsSwitches(switch_list); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2188 | } |
| 2189 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2190 | void ResetAllFlags(FlagsStorage* flags_storage) { |
| 2191 | FlagsState::GetInstance()->ResetAllFlags(flags_storage); |
[email protected] | cb93bf5 | 2013-02-20 01:20:00 | [diff] [blame] | 2192 | } |
| 2193 | |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2194 | int GetCurrentPlatform() { |
| 2195 | #if defined(OS_MACOSX) |
| 2196 | return kOsMac; |
| 2197 | #elif defined(OS_WIN) |
| 2198 | return kOsWin; |
| 2199 | #elif defined(OS_CHROMEOS) // Needs to be before the OS_LINUX check. |
| 2200 | return kOsCrOS; |
[email protected] | c92f4ed | 2011-10-21 19:50:21 | [diff] [blame] | 2201 | #elif defined(OS_LINUX) || defined(OS_OPENBSD) |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2202 | return kOsLinux; |
[email protected] | 9c7453d | 2012-01-21 00:45:40 | [diff] [blame] | 2203 | #elif defined(OS_ANDROID) |
| 2204 | return kOsAndroid; |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2205 | #else |
| 2206 | #error Unknown platform |
| 2207 | #endif |
| 2208 | } |
| 2209 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2210 | void RecordUMAStatistics(FlagsStorage* flags_storage) { |
| 2211 | std::set<std::string> flags = flags_storage->GetFlags(); |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 2212 | for (std::set<std::string>::iterator it = flags.begin(); it != flags.end(); |
| 2213 | ++it) { |
| 2214 | std::string action("AboutFlags_"); |
| 2215 | action += *it; |
[email protected] | 7f6f44c | 2011-12-14 13:23:38 | [diff] [blame] | 2216 | content::RecordComputedAction(action); |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 2217 | } |
| 2218 | // Since flag metrics are recorded every startup, add a tick so that the |
| 2219 | // stats can be made meaningful. |
| 2220 | if (flags.size()) |
[email protected] | 7f6f44c | 2011-12-14 13:23:38 | [diff] [blame] | 2221 | content::RecordAction(UserMetricsAction("AboutFlags_StartupTick")); |
| 2222 | content::RecordAction(UserMetricsAction("StartupTick")); |
[email protected] | 4bc5050c | 2010-11-18 17:55:54 | [diff] [blame] | 2223 | } |
| 2224 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2225 | ////////////////////////////////////////////////////////////////////////////// |
| 2226 | // FlagsState implementation. |
| 2227 | |
| 2228 | namespace { |
| 2229 | |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2230 | typedef std::map<std::string, std::pair<std::string, std::string> > |
| 2231 | NameToSwitchAndValueMap; |
| 2232 | |
| 2233 | void SetFlagToSwitchMapping(const std::string& key, |
| 2234 | const std::string& switch_name, |
| 2235 | const std::string& switch_value, |
| 2236 | NameToSwitchAndValueMap* name_to_switch_map) { |
| 2237 | DCHECK(name_to_switch_map->end() == name_to_switch_map->find(key)); |
| 2238 | (*name_to_switch_map)[key] = std::make_pair(switch_name, switch_value); |
| 2239 | } |
| 2240 | |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 2241 | void FlagsState::ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| 2242 | CommandLine* command_line, |
| 2243 | SentinelsMode sentinels) { |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2244 | if (command_line->HasSwitch(switches::kNoExperiments)) |
| 2245 | return; |
| 2246 | |
| 2247 | std::set<std::string> enabled_experiments; |
[email protected] | ba816424 | 2010-11-16 21:31:00 | [diff] [blame] | 2248 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2249 | GetSanitizedEnabledFlagsForCurrentPlatform(flags_storage, |
| 2250 | &enabled_experiments); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2251 | |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 2252 | NameToSwitchAndValueMap name_to_switch_map; |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2253 | for (size_t i = 0; i < num_experiments; ++i) { |
| 2254 | const Experiment& e = experiments[i]; |
| 2255 | if (e.type == Experiment::SINGLE_VALUE) { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2256 | SetFlagToSwitchMapping(e.internal_name, e.command_line_switch, |
| 2257 | e.command_line_value, &name_to_switch_map); |
| 2258 | } else if (e.type == Experiment::MULTI_VALUE) { |
| 2259 | for (int j = 0; j < e.num_choices; ++j) { |
| 2260 | SetFlagToSwitchMapping(e.NameForChoice(j), |
| 2261 | e.choices[j].command_line_switch, |
| 2262 | e.choices[j].command_line_value, |
| 2263 | &name_to_switch_map); |
| 2264 | } |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2265 | } else { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2266 | DCHECK_EQ(e.type, Experiment::ENABLE_DISABLE_VALUE); |
| 2267 | SetFlagToSwitchMapping(e.NameForChoice(0), std::string(), std::string(), |
| 2268 | &name_to_switch_map); |
| 2269 | SetFlagToSwitchMapping(e.NameForChoice(1), e.command_line_switch, |
| 2270 | e.command_line_value, &name_to_switch_map); |
| 2271 | SetFlagToSwitchMapping(e.NameForChoice(2), e.disable_command_line_switch, |
| 2272 | e.disable_command_line_value, &name_to_switch_map); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2273 | } |
| 2274 | } |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2275 | |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 2276 | if (sentinels == kAddSentinels) { |
| 2277 | command_line->AppendSwitch(switches::kFlagSwitchesBegin); |
| 2278 | flags_switches_.insert( |
| 2279 | std::pair<std::string, std::string>(switches::kFlagSwitchesBegin, |
| 2280 | std::string())); |
| 2281 | } |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2282 | for (std::set<std::string>::iterator it = enabled_experiments.begin(); |
| 2283 | it != enabled_experiments.end(); |
| 2284 | ++it) { |
| 2285 | const std::string& experiment_name = *it; |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 2286 | NameToSwitchAndValueMap::const_iterator name_to_switch_it = |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2287 | name_to_switch_map.find(experiment_name); |
| 2288 | if (name_to_switch_it == name_to_switch_map.end()) { |
| 2289 | NOTREACHED(); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2290 | continue; |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2291 | } |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2292 | |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 2293 | const std::pair<std::string, std::string>& |
| 2294 | switch_and_value_pair = name_to_switch_it->second; |
| 2295 | |
[email protected] | 9737b363 | 2013-08-26 09:23:23 | [diff] [blame] | 2296 | CHECK(!switch_and_value_pair.first.empty()); |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 2297 | command_line->AppendSwitchASCII(switch_and_value_pair.first, |
| 2298 | switch_and_value_pair.second); |
| 2299 | flags_switches_[switch_and_value_pair.first] = switch_and_value_pair.second; |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2300 | } |
[email protected] | 578f209 | 2013-09-16 17:16:21 | [diff] [blame] | 2301 | if (sentinels == kAddSentinels) { |
| 2302 | command_line->AppendSwitch(switches::kFlagSwitchesEnd); |
| 2303 | flags_switches_.insert( |
| 2304 | std::pair<std::string, std::string>(switches::kFlagSwitchesEnd, |
| 2305 | std::string())); |
| 2306 | } |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2307 | } |
| 2308 | |
| 2309 | bool FlagsState::IsRestartNeededToCommitChanges() { |
| 2310 | return needs_restart_; |
| 2311 | } |
| 2312 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2313 | void FlagsState::SetExperimentEnabled(FlagsStorage* flags_storage, |
| 2314 | const std::string& internal_name, |
| 2315 | bool enable) { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2316 | size_t at_index = internal_name.find(testing::kMultiSeparator); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2317 | if (at_index != std::string::npos) { |
| 2318 | DCHECK(enable); |
| 2319 | // We're being asked to enable a multi-choice experiment. Disable the |
| 2320 | // currently selected choice. |
| 2321 | DCHECK_NE(at_index, 0u); |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2322 | const std::string experiment_name = internal_name.substr(0, at_index); |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2323 | SetExperimentEnabled(flags_storage, experiment_name, false); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2324 | |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2325 | // And enable the new choice, if it is not the default first choice. |
| 2326 | if (internal_name != experiment_name + "@0") { |
| 2327 | std::set<std::string> enabled_experiments; |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2328 | GetSanitizedEnabledFlags(flags_storage, &enabled_experiments); |
[email protected] | 147492b | 2013-03-19 23:52:08 | [diff] [blame] | 2329 | needs_restart_ |= enabled_experiments.insert(internal_name).second; |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2330 | flags_storage->SetFlags(enabled_experiments); |
[email protected] | 28e35af | 2011-02-09 12:56:22 | [diff] [blame] | 2331 | } |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2332 | return; |
| 2333 | } |
| 2334 | |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2335 | std::set<std::string> enabled_experiments; |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2336 | GetSanitizedEnabledFlags(flags_storage, &enabled_experiments); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2337 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2338 | const Experiment* e = NULL; |
| 2339 | for (size_t i = 0; i < num_experiments; ++i) { |
| 2340 | if (experiments[i].internal_name == internal_name) { |
| 2341 | e = experiments + i; |
| 2342 | break; |
| 2343 | } |
| 2344 | } |
| 2345 | DCHECK(e); |
| 2346 | |
| 2347 | if (e->type == Experiment::SINGLE_VALUE) { |
[email protected] | 8a271368 | 2011-08-19 10:36:59 | [diff] [blame] | 2348 | if (enable) |
[email protected] | 147492b | 2013-03-19 23:52:08 | [diff] [blame] | 2349 | needs_restart_ |= enabled_experiments.insert(internal_name).second; |
[email protected] | 8a271368 | 2011-08-19 10:36:59 | [diff] [blame] | 2350 | else |
[email protected] | 147492b | 2013-03-19 23:52:08 | [diff] [blame] | 2351 | needs_restart_ |= (enabled_experiments.erase(internal_name) > 0); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2352 | } else { |
| 2353 | if (enable) { |
| 2354 | // Enable the first choice. |
[email protected] | 147492b | 2013-03-19 23:52:08 | [diff] [blame] | 2355 | needs_restart_ |= enabled_experiments.insert(e->NameForChoice(0)).second; |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2356 | } else { |
| 2357 | // Find the currently enabled choice and disable it. |
| 2358 | for (int i = 0; i < e->num_choices; ++i) { |
[email protected] | 83e9fa70 | 2013-02-25 19:30:44 | [diff] [blame] | 2359 | std::string choice_name = e->NameForChoice(i); |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2360 | if (enabled_experiments.find(choice_name) != |
| 2361 | enabled_experiments.end()) { |
[email protected] | 147492b | 2013-03-19 23:52:08 | [diff] [blame] | 2362 | needs_restart_ = true; |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2363 | enabled_experiments.erase(choice_name); |
| 2364 | // Continue on just in case there's a bug and more than one |
| 2365 | // experiment for this choice was enabled. |
| 2366 | } |
| 2367 | } |
| 2368 | } |
| 2369 | } |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2370 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2371 | flags_storage->SetFlags(enabled_experiments); |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 2372 | } |
| 2373 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2374 | void FlagsState::RemoveFlagsSwitches( |
| 2375 | std::map<std::string, CommandLine::StringType>* switch_list) { |
[email protected] | a8274453 | 2011-02-11 16:15:53 | [diff] [blame] | 2376 | for (std::map<std::string, std::string>::const_iterator |
| 2377 | it = flags_switches_.begin(); it != flags_switches_.end(); ++it) { |
| 2378 | switch_list->erase(it->first); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2379 | } |
| 2380 | } |
| 2381 | |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2382 | void FlagsState::ResetAllFlags(FlagsStorage* flags_storage) { |
[email protected] | cb93bf5 | 2013-02-20 01:20:00 | [diff] [blame] | 2383 | needs_restart_ = true; |
| 2384 | |
| 2385 | std::set<std::string> no_experiments; |
[email protected] | e6d1c4f | 2013-06-12 17:37:40 | [diff] [blame] | 2386 | flags_storage->SetFlags(no_experiments); |
[email protected] | cb93bf5 | 2013-02-20 01:20:00 | [diff] [blame] | 2387 | } |
| 2388 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2389 | void FlagsState::reset() { |
| 2390 | needs_restart_ = false; |
| 2391 | flags_switches_.clear(); |
| 2392 | } |
| 2393 | |
[email protected] | 38e4681 | 2011-05-09 20:49:22 | [diff] [blame] | 2394 | } // namespace |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2395 | |
| 2396 | namespace testing { |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2397 | |
| 2398 | // WARNING: '@' is also used in the html file. If you update this constant you |
| 2399 | // also need to update the html file. |
| 2400 | const char kMultiSeparator[] = "@"; |
| 2401 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2402 | void ClearState() { |
[email protected] | 8e8bb6d | 2010-12-13 08:18:55 | [diff] [blame] | 2403 | FlagsState::GetInstance()->reset(); |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2404 | } |
[email protected] | a314ee5a | 2010-10-26 21:23:28 | [diff] [blame] | 2405 | |
| 2406 | void SetExperiments(const Experiment* e, size_t count) { |
| 2407 | if (!e) { |
| 2408 | experiments = kExperiments; |
| 2409 | num_experiments = arraysize(kExperiments); |
| 2410 | } else { |
| 2411 | experiments = e; |
| 2412 | num_experiments = count; |
| 2413 | } |
| 2414 | } |
| 2415 | |
[email protected] | 8a6ff28d | 2010-12-02 16:35:19 | [diff] [blame] | 2416 | const Experiment* GetExperiments(size_t* count) { |
| 2417 | *count = num_experiments; |
| 2418 | return experiments; |
| 2419 | } |
| 2420 | |
[email protected] | e2ddbc9 | 2010-10-15 20:02:07 | [diff] [blame] | 2421 | } // namespace testing |
| 2422 | |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 2423 | } // namespace about_flags |