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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 const Experiment::Choice kAutofillSyncCredentialChoices[] = { | 466 const Experiment::Choice kAutofillSyncCredentialChoices[] = { |
467 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, | 467 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
468 { IDS_ALLOW_AUTOFILL_SYNC_CREDENTIAL, | 468 { IDS_ALLOW_AUTOFILL_SYNC_CREDENTIAL, |
469 password_manager::switches::kAllowAutofillSyncCredential, ""}, | 469 password_manager::switches::kAllowAutofillSyncCredential, ""}, |
470 { IDS_DISALLOW_AUTOFILL_SYNC_CREDENTIAL_FOR_REAUTH, | 470 { IDS_DISALLOW_AUTOFILL_SYNC_CREDENTIAL_FOR_REAUTH, |
471 password_manager::switches::kDisallowAutofillSyncCredentialForReauth, ""}, | 471 password_manager::switches::kDisallowAutofillSyncCredentialForReauth, ""}, |
472 { IDS_DISALLOW_AUTOFILL_SYNC_CREDENTIAL, | 472 { IDS_DISALLOW_AUTOFILL_SYNC_CREDENTIAL, |
473 password_manager::switches::kDisallowAutofillSyncCredential, ""}, | 473 password_manager::switches::kDisallowAutofillSyncCredential, ""}, |
474 }; | 474 }; |
475 | 475 |
| 476 const Experiment::Choice kSSLVersionMinChoices[] = { |
| 477 { IDS_FLAGS_SSL_VERSION_DEFAULT, switches::kSSLVersionMin, "" }, |
| 478 { IDS_FLAGS_SSL_VERSION_SSLV3, switches::kSSLVersionMin, |
| 479 switches::kSSLVersionSSLv3 }, |
| 480 { IDS_FLAGS_SSL_VERSION_TLSV1, switches::kSSLVersionMin, |
| 481 switches::kSSLVersionTLSv1 }, |
| 482 { IDS_FLAGS_SSL_VERSION_TLSV11, switches::kSSLVersionMin, |
| 483 switches::kSSLVersionTLSv11 }, |
| 484 { IDS_FLAGS_SSL_VERSION_TLSV12, switches::kSSLVersionMin, |
| 485 switches::kSSLVersionTLSv12 }, |
| 486 }; |
| 487 |
476 // RECORDING USER METRICS FOR FLAGS: | 488 // RECORDING USER METRICS FOR FLAGS: |
477 // ----------------------------------------------------------------------------- | 489 // ----------------------------------------------------------------------------- |
478 // The first line of the experiment is the internal name. If you'd like to | 490 // The first line of the experiment is the internal name. If you'd like to |
479 // gather statistics about the usage of your flag, you should append a marker | 491 // gather statistics about the usage of your flag, you should append a marker |
480 // comment to the end of the feature name, like so: | 492 // comment to the end of the feature name, like so: |
481 // "my-special-feature", // FLAGS:RECORD_UMA | 493 // "my-special-feature", // FLAGS:RECORD_UMA |
482 // | 494 // |
483 // After doing that, run | 495 // After doing that, run |
484 // tools/metrics/actions/extract_actions.py | 496 // tools/metrics/actions/extract_actions.py |
485 // to add the metric to actions.xml (which will enable UMA to record your | 497 // to add the metric to actions.xml (which will enable UMA to record your |
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) | 2026 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) |
2015 }, | 2027 }, |
2016 { | 2028 { |
2017 "disable-new-zip-unpacker", | 2029 "disable-new-zip-unpacker", |
2018 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, | 2030 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, |
2019 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, | 2031 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, |
2020 kOsCrOS, | 2032 kOsCrOS, |
2021 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) | 2033 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) |
2022 } | 2034 } |
2023 #endif // defined(OS_CHROMEOS) | 2035 #endif // defined(OS_CHROMEOS) |
| 2036 { |
| 2037 "ssl-version-min", |
| 2038 IDS_FLAGS_SSL_VERSION_MIN_NAME, |
| 2039 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, |
| 2040 kOsAll, |
| 2041 MULTI_VALUE_TYPE(kSSLVersionMinChoices) |
| 2042 }, |
2024 // NOTE: Adding new command-line switches requires adding corresponding | 2043 // NOTE: Adding new command-line switches requires adding corresponding |
2025 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2044 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2026 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2045 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2027 }; | 2046 }; |
2028 | 2047 |
2029 const Experiment* experiments = kExperiments; | 2048 const Experiment* experiments = kExperiments; |
2030 size_t num_experiments = arraysize(kExperiments); | 2049 size_t num_experiments = arraysize(kExperiments); |
2031 | 2050 |
2032 // Stores and encapsulates the little state that about:flags has. | 2051 // Stores and encapsulates the little state that about:flags has. |
2033 class FlagsState { | 2052 class FlagsState { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2599 } | 2618 } |
2600 | 2619 |
2601 const Experiment* GetExperiments(size_t* count) { | 2620 const Experiment* GetExperiments(size_t* count) { |
2602 *count = num_experiments; | 2621 *count = num_experiments; |
2603 return experiments; | 2622 return experiments; |
2604 } | 2623 } |
2605 | 2624 |
2606 } // namespace testing | 2625 } // namespace testing |
2607 | 2626 |
2608 } // namespace about_flags | 2627 } // namespace about_flags |
OLD | NEW |