| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // macro for this type supplying the command line to the macro. | 420 // macro for this type supplying the command line to the macro. |
| 421 // . MULTI_VALUE: a list of choices, the first of which should correspond to a | 421 // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 422 // deactivated state for this lab (i.e. no command line option). To specify | 422 // deactivated state for this lab (i.e. no command line option). To specify |
| 423 // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the | 423 // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the |
| 424 // array of choices. | 424 // array of choices. |
| 425 // See the documentation of Experiment for details on the fields. | 425 // See the documentation of Experiment for details on the fields. |
| 426 // | 426 // |
| 427 // When adding a new choice, add it to the end of the list. | 427 // When adding a new choice, add it to the end of the list. |
| 428 const Experiment kExperiments[] = { | 428 const Experiment kExperiments[] = { |
| 429 { | 429 { |
| 430 "expose-for-tabs", // FLAGS:RECORD_UMA | |
| 431 IDS_FLAGS_TABPOSE_NAME, | |
| 432 IDS_FLAGS_TABPOSE_DESCRIPTION, | |
| 433 kOsMac, | |
| 434 #if defined(OS_MACOSX) | |
| 435 // The switch exists only on OS X. | |
| 436 SINGLE_VALUE_TYPE(switches::kEnableExposeForTabs) | |
| 437 #else | |
| 438 SINGLE_VALUE_TYPE("") | |
| 439 #endif | |
| 440 }, | |
| 441 { | |
| 442 "conflicting-modules-check", // FLAGS:RECORD_UMA | 430 "conflicting-modules-check", // FLAGS:RECORD_UMA |
| 443 IDS_FLAGS_CONFLICTS_CHECK_NAME, | 431 IDS_FLAGS_CONFLICTS_CHECK_NAME, |
| 444 IDS_FLAGS_CONFLICTS_CHECK_DESCRIPTION, | 432 IDS_FLAGS_CONFLICTS_CHECK_DESCRIPTION, |
| 445 kOsWin, | 433 kOsWin, |
| 446 SINGLE_VALUE_TYPE(switches::kConflictingModulesCheck) | 434 SINGLE_VALUE_TYPE(switches::kConflictingModulesCheck) |
| 447 }, | 435 }, |
| 448 { | 436 { |
| 449 "ignore-gpu-blacklist", | 437 "ignore-gpu-blacklist", |
| 450 IDS_FLAGS_IGNORE_GPU_BLACKLIST_NAME, | 438 IDS_FLAGS_IGNORE_GPU_BLACKLIST_NAME, |
| 451 IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION, | 439 IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION, |
| (...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 } | 2501 } |
| 2514 | 2502 |
| 2515 const Experiment* GetExperiments(size_t* count) { | 2503 const Experiment* GetExperiments(size_t* count) { |
| 2516 *count = num_experiments; | 2504 *count = num_experiments; |
| 2517 return experiments; | 2505 return experiments; |
| 2518 } | 2506 } |
| 2519 | 2507 |
| 2520 } // namespace testing | 2508 } // namespace testing |
| 2521 | 2509 |
| 2522 } // namespace about_flags | 2510 } // namespace about_flags |
| OLD | NEW |