OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 #if defined(USE_AURA) || defined(OS_LINUX) | 282 #if defined(USE_AURA) || defined(OS_LINUX) |
283 const Experiment::Choice kOverlayScrollbarChoices[] = { | 283 const Experiment::Choice kOverlayScrollbarChoices[] = { |
284 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 284 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
285 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 285 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
286 switches::kEnableOverlayScrollbar, ""}, | 286 switches::kEnableOverlayScrollbar, ""}, |
287 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 287 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
288 switches::kDisableOverlayScrollbar, ""} | 288 switches::kDisableOverlayScrollbar, ""} |
289 }; | 289 }; |
290 #endif | 290 #endif |
291 | 291 |
292 const Experiment::Choice kMapImageChoices[] = { | 292 const Experiment::Choice kZeroCopyChoices[] = { |
293 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 293 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
294 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 294 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
295 switches::kEnableMapImage, ""}, | 295 switches::kEnableZeroCopy, ""}, |
296 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 296 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
297 switches::kDisableMapImage, ""} | 297 switches::kDisableZeroCopy, ""} |
298 }; | 298 }; |
299 | 299 |
300 #if defined(OS_ANDROID) | 300 #if defined(OS_ANDROID) |
301 const Experiment::Choice kZeroSuggestExperimentsChoices[] = { | 301 const Experiment::Choice kZeroSuggestExperimentsChoices[] = { |
302 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 302 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
303 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED, | 303 { IDS_FLAGS_ZERO_SUGGEST_MOST_VISITED, |
304 switches::kEnableZeroSuggestMostVisited, ""}, | 304 switches::kEnableZeroSuggestMostVisited, ""}, |
305 { IDS_FLAGS_ZERO_SUGGEST_ETHER_SERP, | 305 { IDS_FLAGS_ZERO_SUGGEST_ETHER_SERP, |
306 switches::kEnableZeroSuggestEtherSerp, ""}, | 306 switches::kEnableZeroSuggestEtherSerp, ""}, |
307 { IDS_FLAGS_ZERO_SUGGEST_ETHER_NO_SERP, | 307 { IDS_FLAGS_ZERO_SUGGEST_ETHER_NO_SERP, |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 // ships in the stable channel. http://crbug.com/356775 | 1498 // ships in the stable channel. http://crbug.com/356775 |
1499 "enable-accessibility-script-injection", | 1499 "enable-accessibility-script-injection", |
1500 IDS_FLAGS_ENABLE_ACCESSIBILITY_SCRIPT_INJECTION_NAME, | 1500 IDS_FLAGS_ENABLE_ACCESSIBILITY_SCRIPT_INJECTION_NAME, |
1501 IDS_FLAGS_ENABLE_ACCESSIBILITY_SCRIPT_INJECTION_DESCRIPTION, | 1501 IDS_FLAGS_ENABLE_ACCESSIBILITY_SCRIPT_INJECTION_DESCRIPTION, |
1502 kOsAndroid, | 1502 kOsAndroid, |
1503 // Java-only switch: ContentSwitches.ENABLE_ACCESSIBILITY_SCRIPT_INJECTION. | 1503 // Java-only switch: ContentSwitches.ENABLE_ACCESSIBILITY_SCRIPT_INJECTION. |
1504 SINGLE_VALUE_TYPE("enable-accessibility-script-injection") | 1504 SINGLE_VALUE_TYPE("enable-accessibility-script-injection") |
1505 }, | 1505 }, |
1506 #endif | 1506 #endif |
1507 { | 1507 { |
1508 "map-image", | 1508 "enable-one-copy", |
1509 IDS_FLAGS_MAP_IMAGE_NAME, | 1509 IDS_FLAGS_ONE_COPY_NAME, |
1510 IDS_FLAGS_MAP_IMAGE_DESCRIPTION, | 1510 IDS_FLAGS_ONE_COPY_DESCRIPTION, |
1511 kOsAll, | 1511 kOsAll, |
1512 MULTI_VALUE_TYPE(kMapImageChoices) | 1512 SINGLE_VALUE_TYPE(switches::kEnableOneCopy) |
| 1513 }, |
| 1514 { |
| 1515 "enable-zero-copy", |
| 1516 IDS_FLAGS_ZERO_COPY_NAME, |
| 1517 IDS_FLAGS_ZERO_COPY_DESCRIPTION, |
| 1518 kOsAll, |
| 1519 MULTI_VALUE_TYPE(kZeroCopyChoices) |
1513 }, | 1520 }, |
1514 #if defined(OS_CHROMEOS) | 1521 #if defined(OS_CHROMEOS) |
1515 { | 1522 { |
1516 "disable-first-run-ui", | 1523 "disable-first-run-ui", |
1517 IDS_FLAGS_DISABLE_FIRST_RUN_UI_NAME, | 1524 IDS_FLAGS_DISABLE_FIRST_RUN_UI_NAME, |
1518 IDS_FLAGS_DISABLE_FIRST_RUN_UI_DESCRIPTION, | 1525 IDS_FLAGS_DISABLE_FIRST_RUN_UI_DESCRIPTION, |
1519 kOsCrOS, | 1526 kOsCrOS, |
1520 SINGLE_VALUE_TYPE(chromeos::switches::kDisableFirstRunUI) | 1527 SINGLE_VALUE_TYPE(chromeos::switches::kDisableFirstRunUI) |
1521 }, | 1528 }, |
1522 { | 1529 { |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2339 } | 2346 } |
2340 | 2347 |
2341 const Experiment* GetExperiments(size_t* count) { | 2348 const Experiment* GetExperiments(size_t* count) { |
2342 *count = num_experiments; | 2349 *count = num_experiments; |
2343 return experiments; | 2350 return experiments; |
2344 } | 2351 } |
2345 | 2352 |
2346 } // namespace testing | 2353 } // namespace testing |
2347 | 2354 |
2348 } // namespace about_flags | 2355 } // namespace about_flags |
OLD | NEW |