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 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 kOsAll, | 2190 kOsAll, |
2191 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost) | 2191 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost) |
2192 }, | 2192 }, |
2193 { | 2193 { |
2194 "bypass-app-banner-engagement-checks", | 2194 "bypass-app-banner-engagement-checks", |
2195 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_NAME, | 2195 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_NAME, |
2196 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_DESCRIPTION, | 2196 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_DESCRIPTION, |
2197 kOsAndroid, | 2197 kOsAndroid, |
2198 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks) | 2198 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks) |
2199 }, | 2199 }, |
| 2200 { |
| 2201 "enable-cert-collection", |
| 2202 IDS_ENABLE_INVALID_CERT_COLLECTION, |
| 2203 IDS_ENABLE_INVALID_CERT_COLLECTION_DESCRIPTION, |
| 2204 kOsAll, |
| 2205 SINGLE_VALUE_TYPE(switches::kEnableInvalidCertCollection) |
| 2206 }, |
2200 | 2207 |
2201 // NOTE: Adding new command-line switches requires adding corresponding | 2208 // NOTE: Adding new command-line switches requires adding corresponding |
2202 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2209 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2203 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2210 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2204 }; | 2211 }; |
2205 | 2212 |
2206 const Experiment* experiments = kExperiments; | 2213 const Experiment* experiments = kExperiments; |
2207 size_t num_experiments = arraysize(kExperiments); | 2214 size_t num_experiments = arraysize(kExperiments); |
2208 | 2215 |
2209 // Stores and encapsulates the little state that about:flags has. | 2216 // Stores and encapsulates the little state that about:flags has. |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 } | 2800 } |
2794 | 2801 |
2795 const Experiment* GetExperiments(size_t* count) { | 2802 const Experiment* GetExperiments(size_t* count) { |
2796 *count = num_experiments; | 2803 *count = num_experiments; |
2797 return experiments; | 2804 return experiments; |
2798 } | 2805 } |
2799 | 2806 |
2800 } // namespace testing | 2807 } // namespace testing |
2801 | 2808 |
2802 } // namespace about_flags | 2809 } // namespace about_flags |
OLD | NEW |