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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 const Experiment::Choice kFillOnAccountSelectChoices[] = { | 386 const Experiment::Choice kFillOnAccountSelectChoices[] = { |
387 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 387 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
388 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 388 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
389 autofill::switches::kDisableFillOnAccountSelect, "" }, | 389 autofill::switches::kDisableFillOnAccountSelect, "" }, |
390 { IDS_FLAGS_FILL_ON_ACCOUNT_SELECT_ENABLE_HIGHLIGHTING, | 390 { IDS_FLAGS_FILL_ON_ACCOUNT_SELECT_ENABLE_HIGHLIGHTING, |
391 autofill::switches::kEnableFillOnAccountSelect, "" }, | 391 autofill::switches::kEnableFillOnAccountSelect, "" }, |
392 { IDS_FLAGS_FILL_ON_ACCOUNT_SELECT_ENABLE_NO_HIGHLIGHTING, | 392 { IDS_FLAGS_FILL_ON_ACCOUNT_SELECT_ENABLE_NO_HIGHLIGHTING, |
393 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, "" }, | 393 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, "" }, |
394 }; | 394 }; |
395 | 395 |
| 396 #if defined(USE_ASH) |
| 397 const Experiment::Choice kAshScreenRotationAnimationChoices[] = { |
| 398 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, "", "" }, |
| 399 { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION, |
| 400 ash::switches::kAshEnableScreenRotationAnimation, "partial-rotation" }, |
| 401 { IDS_ASH_SCREEN_ROTATION_ANIMATION_PARTIAL_ROTATION_SLOW, |
| 402 ash::switches::kAshEnableScreenRotationAnimation, "partial-rotation-slow" }, |
| 403 { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION, |
| 404 ash::switches::kAshEnableScreenRotationAnimation, "full-rotation" }, |
| 405 { IDS_ASH_SCREEN_ROTATION_ANIMATION_FULL_ROTATION_SLOW, |
| 406 ash::switches::kAshEnableScreenRotationAnimation, "full-rotation-slow" } |
| 407 }; |
| 408 #endif |
| 409 |
396 // RECORDING USER METRICS FOR FLAGS: | 410 // RECORDING USER METRICS FOR FLAGS: |
397 // ----------------------------------------------------------------------------- | 411 // ----------------------------------------------------------------------------- |
398 // The first line of the experiment is the internal name. If you'd like to | 412 // The first line of the experiment is the internal name. If you'd like to |
399 // gather statistics about the usage of your flag, you should append a marker | 413 // gather statistics about the usage of your flag, you should append a marker |
400 // comment to the end of the feature name, like so: | 414 // comment to the end of the feature name, like so: |
401 // "my-special-feature", // FLAGS:RECORD_UMA | 415 // "my-special-feature", // FLAGS:RECORD_UMA |
402 // | 416 // |
403 // After doing that, run | 417 // After doing that, run |
404 // tools/metrics/actions/extract_actions.py | 418 // tools/metrics/actions/extract_actions.py |
405 // to add the metric to actions.xml (which will enable UMA to record your | 419 // to add the metric to actions.xml (which will enable UMA to record your |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 IDS_FLAGS_DISABLE_TOUCH_FEEDBACK_DESCRIPTION, | 986 IDS_FLAGS_DISABLE_TOUCH_FEEDBACK_DESCRIPTION, |
973 kOsCrOS, | 987 kOsCrOS, |
974 SINGLE_VALUE_TYPE(switches::kDisableTouchFeedback), | 988 SINGLE_VALUE_TYPE(switches::kDisableTouchFeedback), |
975 }, | 989 }, |
976 { "ash-enable-mirrored-screen", | 990 { "ash-enable-mirrored-screen", |
977 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_NAME, | 991 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_NAME, |
978 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_DESCRIPTION, | 992 IDS_FLAGS_ASH_ENABLE_MIRRORED_SCREEN_DESCRIPTION, |
979 kOsCrOS, | 993 kOsCrOS, |
980 SINGLE_VALUE_TYPE(ash::switches::kAshEnableMirroredScreen), | 994 SINGLE_VALUE_TYPE(ash::switches::kAshEnableMirroredScreen), |
981 }, | 995 }, |
| 996 { |
| 997 "ash-enable-screen-rotation-animations", |
| 998 IDS_FLAGS_ASH_ENABLE_SCREEN_ROTATION_ANIMATION_NAME, |
| 999 IDS_FLAGS_ASH_ENABLE_SCREEN_ROTATION_ANIMATION_DESCRIPTION, |
| 1000 kOsCrOS, |
| 1001 MULTI_VALUE_TYPE(kAshScreenRotationAnimationChoices) |
| 1002 }, |
982 #endif // defined(USE_ASH) | 1003 #endif // defined(USE_ASH) |
983 #if defined(OS_CHROMEOS) | 1004 #if defined(OS_CHROMEOS) |
984 { | 1005 { |
985 "enable-carrier-switching", | 1006 "enable-carrier-switching", |
986 IDS_FLAGS_ENABLE_CARRIER_SWITCHING, | 1007 IDS_FLAGS_ENABLE_CARRIER_SWITCHING, |
987 IDS_FLAGS_ENABLE_CARRIER_SWITCHING_DESCRIPTION, | 1008 IDS_FLAGS_ENABLE_CARRIER_SWITCHING_DESCRIPTION, |
988 kOsCrOS, | 1009 kOsCrOS, |
989 SINGLE_VALUE_TYPE(chromeos::switches::kEnableCarrierSwitching) | 1010 SINGLE_VALUE_TYPE(chromeos::switches::kEnableCarrierSwitching) |
990 }, | 1011 }, |
991 { | 1012 { |
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2788 } | 2809 } |
2789 | 2810 |
2790 const Experiment* GetExperiments(size_t* count) { | 2811 const Experiment* GetExperiments(size_t* count) { |
2791 *count = num_experiments; | 2812 *count = num_experiments; |
2792 return experiments; | 2813 return experiments; |
2793 } | 2814 } |
2794 | 2815 |
2795 } // namespace testing | 2816 } // namespace testing |
2796 | 2817 |
2797 } // namespace about_flags | 2818 } // namespace about_flags |
OLD | NEW |