| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 const Experiment::Choice kNotificationCenterTrayBehaviorChoices[] = { | 365 const Experiment::Choice kNotificationCenterTrayBehaviorChoices[] = { |
| 366 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 366 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 367 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_NEVER, | 367 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_NEVER, |
| 368 message_center::switches::kNotificationCenterTrayBehavior, "never" }, | 368 message_center::switches::kNotificationCenterTrayBehavior, "never" }, |
| 369 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_ALWAYS, | 369 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_ALWAYS, |
| 370 message_center::switches::kNotificationCenterTrayBehavior, "always" }, | 370 message_center::switches::kNotificationCenterTrayBehavior, "always" }, |
| 371 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_UNREAD, | 371 { IDS_FLAGS_NOTIFICATION_TRAY_BEHAVIOR_UNREAD, |
| 372 message_center::switches::kNotificationCenterTrayBehavior, "unread" } | 372 message_center::switches::kNotificationCenterTrayBehavior, "unread" } |
| 373 }; | 373 }; |
| 374 | 374 |
| 375 const Experiment::Choice kEnableGPURasterizationChoices[] = { |
| 376 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
| 377 {IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 378 cc::switches::kEnableGPURasterization, ""}, |
| 379 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 380 cc::switches::kDisableGPURasterization, ""}, |
| 381 {IDS_FLAGS_ENABLE_GPU_RASTERIZATION_GPU, |
| 382 cc::switches::kEnableGPURasterization, "gpu"}, |
| 383 {IDS_FLAGS_ENABLE_GPU_RASTERIZATION_MSAA4, |
| 384 cc::switches::kEnableGPURasterization, "msaa4"}, |
| 385 {IDS_FLAGS_ENABLE_GPU_RASTERIZATION_MSAA16, |
| 386 cc::switches::kEnableGPURasterization, "msaa16"}}; |
| 387 |
| 375 // RECORDING USER METRICS FOR FLAGS: | 388 // RECORDING USER METRICS FOR FLAGS: |
| 376 // ----------------------------------------------------------------------------- | 389 // ----------------------------------------------------------------------------- |
| 377 // The first line of the experiment is the internal name. If you'd like to | 390 // The first line of the experiment is the internal name. If you'd like to |
| 378 // gather statistics about the usage of your flag, you should append a marker | 391 // gather statistics about the usage of your flag, you should append a marker |
| 379 // comment to the end of the feature name, like so: | 392 // comment to the end of the feature name, like so: |
| 380 // "my-special-feature", // FLAGS:RECORD_UMA | 393 // "my-special-feature", // FLAGS:RECORD_UMA |
| 381 // | 394 // |
| 382 // After doing that, run //tools/metrics/actions/extract_actions.py (see | 395 // After doing that, run //tools/metrics/actions/extract_actions.py (see |
| 383 // instructions at the top of that file for details) to update the | 396 // instructions at the top of that file for details) to update the |
| 384 // chromeactions.txt file, which will enable UMA to record your feature flag. | 397 // chromeactions.txt file, which will enable UMA to record your feature flag. |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 #else | 893 #else |
| 881 0, | 894 0, |
| 882 #endif | 895 #endif |
| 883 SINGLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer) | 896 SINGLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer) |
| 884 }, | 897 }, |
| 885 { | 898 { |
| 886 "enable-gpu-rasterization", | 899 "enable-gpu-rasterization", |
| 887 IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME, | 900 IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME, |
| 888 IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION, | 901 IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION, |
| 889 kOsAll, | 902 kOsAll, |
| 890 SINGLE_VALUE_TYPE(cc::switches::kEnableGPURasterization) | 903 MULTI_VALUE_TYPE(kEnableGPURasterizationChoices) |
| 891 }, | 904 }, |
| 892 { | 905 { |
| 893 "enable-experimental-web-platform-features", | 906 "enable-experimental-web-platform-features", |
| 894 IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_NAME, | 907 IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_NAME, |
| 895 IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_DESCRIPTION, | 908 IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_DESCRIPTION, |
| 896 kOsAll, | 909 kOsAll, |
| 897 SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebPlatformFeatures) | 910 SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebPlatformFeatures) |
| 898 }, | 911 }, |
| 899 { | 912 { |
| 900 "disable-ntp-other-sessions-menu", | 913 "disable-ntp-other-sessions-menu", |
| (...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 } | 2454 } |
| 2442 | 2455 |
| 2443 const Experiment* GetExperiments(size_t* count) { | 2456 const Experiment* GetExperiments(size_t* count) { |
| 2444 *count = num_experiments; | 2457 *count = num_experiments; |
| 2445 return experiments; | 2458 return experiments; |
| 2446 } | 2459 } |
| 2447 | 2460 |
| 2448 } // namespace testing | 2461 } // namespace testing |
| 2449 | 2462 |
| 2450 } // namespace about_flags | 2463 } // namespace about_flags |
| OLD | NEW |