| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 const Experiment::Choice kPointerLockUIChoices[] = { | 143 const Experiment::Choice kPointerLockUIChoices[] = { |
| 144 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 144 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 145 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 145 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 146 switches::kEnablePointerLock, ""}, | 146 switches::kEnablePointerLock, ""}, |
| 147 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 147 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 148 switches::kDisablePointerLock, ""} | 148 switches::kDisablePointerLock, ""} |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 const Experiment::Choice kAsyncDnsChoices[] = { |
| 152 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 153 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 154 switches::kDisableAsyncDns, ""}, |
| 155 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 156 switches::kEnableAsyncDns, ""} |
| 157 }; |
| 158 |
| 151 | 159 |
| 152 // RECORDING USER METRICS FOR FLAGS: | 160 // RECORDING USER METRICS FOR FLAGS: |
| 153 // ----------------------------------------------------------------------------- | 161 // ----------------------------------------------------------------------------- |
| 154 // The first line of the experiment is the internal name. If you'd like to | 162 // The first line of the experiment is the internal name. If you'd like to |
| 155 // gather statistics about the usage of your flag, you should append a marker | 163 // gather statistics about the usage of your flag, you should append a marker |
| 156 // comment to the end of the feature name, like so: | 164 // comment to the end of the feature name, like so: |
| 157 // "my-special-feature", // FLAGS:RECORD_UMA | 165 // "my-special-feature", // FLAGS:RECORD_UMA |
| 158 // | 166 // |
| 159 // After doing that, run //chrome/tools/extract_actions.py (see instructions at | 167 // After doing that, run //chrome/tools/extract_actions.py (see instructions at |
| 160 // the top of that file for details) to update the chromeactions.txt file, which | 168 // the top of that file for details) to update the chromeactions.txt file, which |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 "enable-spdy3", | 523 "enable-spdy3", |
| 516 IDS_FLAGS_ENABLE_SPDY3_NAME, | 524 IDS_FLAGS_ENABLE_SPDY3_NAME, |
| 517 IDS_FLAGS_ENABLE_SPDY3_DESCRIPTION, | 525 IDS_FLAGS_ENABLE_SPDY3_DESCRIPTION, |
| 518 kOsAll, | 526 kOsAll, |
| 519 SINGLE_VALUE_TYPE(switches::kEnableSpdy3) | 527 SINGLE_VALUE_TYPE(switches::kEnableSpdy3) |
| 520 }, | 528 }, |
| 521 { | 529 { |
| 522 "enable-async-dns", | 530 "enable-async-dns", |
| 523 IDS_FLAGS_ENABLE_ASYNC_DNS_NAME, | 531 IDS_FLAGS_ENABLE_ASYNC_DNS_NAME, |
| 524 IDS_FLAGS_ENABLE_ASYNC_DNS_DESCRIPTION, | 532 IDS_FLAGS_ENABLE_ASYNC_DNS_DESCRIPTION, |
| 525 kOsWin | kOsMac | kOsLinux | kOsCrOS, | 533 kOsWin | kOsMac | kOsLinux, |
| 526 SINGLE_VALUE_TYPE(switches::kEnableAsyncDns) | 534 MULTI_VALUE_TYPE(kAsyncDnsChoices) |
| 527 }, | 535 }, |
| 528 { | 536 { |
| 529 "enable-video-track", | 537 "enable-video-track", |
| 530 IDS_FLAGS_ENABLE_VIDEO_TRACK_NAME, | 538 IDS_FLAGS_ENABLE_VIDEO_TRACK_NAME, |
| 531 IDS_FLAGS_ENABLE_VIDEO_TRACK_DESCRIPTION, | 539 IDS_FLAGS_ENABLE_VIDEO_TRACK_DESCRIPTION, |
| 532 kOsAll, | 540 kOsAll, |
| 533 SINGLE_VALUE_TYPE(switches::kEnableVideoTrack) | 541 SINGLE_VALUE_TYPE(switches::kEnableVideoTrack) |
| 534 }, | 542 }, |
| 535 { | 543 { |
| 536 "enable-media-source", | 544 "enable-media-source", |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 } | 1358 } |
| 1351 | 1359 |
| 1352 const Experiment* GetExperiments(size_t* count) { | 1360 const Experiment* GetExperiments(size_t* count) { |
| 1353 *count = num_experiments; | 1361 *count = num_experiments; |
| 1354 return experiments; | 1362 return experiments; |
| 1355 } | 1363 } |
| 1356 | 1364 |
| 1357 } // namespace testing | 1365 } // namespace testing |
| 1358 | 1366 |
| 1359 } // namespace about_flags | 1367 } // namespace about_flags |
| OLD | NEW |