| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 const Experiment::Choice kAsyncDnsChoices[] = { | 144 const Experiment::Choice kAsyncDnsChoices[] = { |
| 145 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 145 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 146 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 146 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 147 switches::kDisableAsyncDns, ""}, | 147 switches::kDisableAsyncDns, ""}, |
| 148 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 148 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 149 switches::kEnableAsyncDns, ""} | 149 switches::kEnableAsyncDns, ""} |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 #if defined(OS_CHROMEOS) |
| 153 const Experiment::Choice kAshBootAnimationFunction[] = { |
| 154 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 155 { IDS_FLAGS_ASH_BOOT_ANIMATION_FUNCTION2, |
| 156 ash::switches::kAshBootAnimationFunction2, ""}, |
| 157 { IDS_FLAGS_ASH_BOOT_ANIMATION_FUNCTION3, |
| 158 ash::switches::kAshBootAnimationFunction3, ""} |
| 159 }; |
| 160 #endif |
| 161 |
| 152 | 162 |
| 153 // RECORDING USER METRICS FOR FLAGS: | 163 // RECORDING USER METRICS FOR FLAGS: |
| 154 // ----------------------------------------------------------------------------- | 164 // ----------------------------------------------------------------------------- |
| 155 // The first line of the experiment is the internal name. If you'd like to | 165 // The first line of the experiment is the internal name. If you'd like to |
| 156 // gather statistics about the usage of your flag, you should append a marker | 166 // gather statistics about the usage of your flag, you should append a marker |
| 157 // comment to the end of the feature name, like so: | 167 // comment to the end of the feature name, like so: |
| 158 // "my-special-feature", // FLAGS:RECORD_UMA | 168 // "my-special-feature", // FLAGS:RECORD_UMA |
| 159 // | 169 // |
| 160 // After doing that, run //chrome/tools/extract_actions.py (see instructions at | 170 // After doing that, run //chrome/tools/extract_actions.py (see instructions at |
| 161 // the top of that file for details) to update the chromeactions.txt file, which | 171 // the top of that file for details) to update the chromeactions.txt file, which |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 SINGLE_VALUE_TYPE(switches::kDisableBootAnimation), | 838 SINGLE_VALUE_TYPE(switches::kDisableBootAnimation), |
| 829 }, | 839 }, |
| 830 { | 840 { |
| 831 "disable-boot-animation2", | 841 "disable-boot-animation2", |
| 832 IDS_FLAGS_DISABLE_BOOT_ANIMATION2, | 842 IDS_FLAGS_DISABLE_BOOT_ANIMATION2, |
| 833 IDS_FLAGS_DISABLE_BOOT_ANIMATION2_DESCRIPTION, | 843 IDS_FLAGS_DISABLE_BOOT_ANIMATION2_DESCRIPTION, |
| 834 kOsCrOS, | 844 kOsCrOS, |
| 835 SINGLE_VALUE_TYPE(ash::switches::kAshDisableBootAnimation2), | 845 SINGLE_VALUE_TYPE(ash::switches::kAshDisableBootAnimation2), |
| 836 }, | 846 }, |
| 837 { | 847 { |
| 848 "boot-animation-fucntion", |
| 849 IDS_FLAGS_ASH_BOOT_ANIMATION_FUNCTION, |
| 850 IDS_FLAGS_ASH_BOOT_ANIMATION_FUNCTION_DESCRIPTION, |
| 851 kOsCrOS, |
| 852 MULTI_VALUE_TYPE(kAshBootAnimationFunction), |
| 853 }, |
| 854 { |
| 838 "disable-workspace2", | 855 "disable-workspace2", |
| 839 IDS_FLAGS_DISABLE_WORKSPACE2, | 856 IDS_FLAGS_DISABLE_WORKSPACE2, |
| 840 IDS_FLAGS_DISABLE_WORKSPACE2_DESCRIPTION, | 857 IDS_FLAGS_DISABLE_WORKSPACE2_DESCRIPTION, |
| 841 kOsCrOS, | 858 kOsCrOS, |
| 842 SINGLE_VALUE_TYPE(ash::switches::kAshDisableWorkspace2), | 859 SINGLE_VALUE_TYPE(ash::switches::kAshDisableWorkspace2), |
| 843 }, | 860 }, |
| 844 #endif | 861 #endif |
| 845 { | 862 { |
| 846 "enable-views-textfield", | 863 "enable-views-textfield", |
| 847 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME, | 864 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME, |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 } | 1371 } |
| 1355 | 1372 |
| 1356 const Experiment* GetExperiments(size_t* count) { | 1373 const Experiment* GetExperiments(size_t* count) { |
| 1357 *count = num_experiments; | 1374 *count = num_experiments; |
| 1358 return experiments; | 1375 return experiments; |
| 1359 } | 1376 } |
| 1360 | 1377 |
| 1361 } // namespace testing | 1378 } // namespace testing |
| 1362 | 1379 |
| 1363 } // namespace about_flags | 1380 } // namespace about_flags |
| OLD | NEW |