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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirewallHolePunching) | 2271 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirewallHolePunching) |
2272 }, | 2272 }, |
2273 #endif // defined(OS_CHROMEOS) | 2273 #endif // defined(OS_CHROMEOS) |
2274 { | 2274 { |
2275 "enable-media-router", | 2275 "enable-media-router", |
2276 IDS_FLAGS_ENABLE_MEDIA_ROUTER_NAME, | 2276 IDS_FLAGS_ENABLE_MEDIA_ROUTER_NAME, |
2277 IDS_FLAGS_ENABLE_MEDIA_ROUTER_DESCRIPTION, | 2277 IDS_FLAGS_ENABLE_MEDIA_ROUTER_DESCRIPTION, |
2278 kOsAll, | 2278 kOsAll, |
2279 SINGLE_VALUE_TYPE(switches::kEnableMediaRouter) | 2279 SINGLE_VALUE_TYPE(switches::kEnableMediaRouter) |
2280 }, | 2280 }, |
2281 { | |
2282 "enable-cert-collection", | |
2283 IDS_ENABLE_INVALID_CERT_COLLECTION, | |
2284 IDS_ENABLE_INVALID_CERT_COLLECTION_DESCRIPTION, | |
2285 kOsAll, | |
2286 SINGLE_VALUE_TYPE(switches::kEnableInvalidCertCollection) | |
2287 }, | |
2288 | 2281 |
2289 // NOTE: Adding new command-line switches requires adding corresponding | 2282 // NOTE: Adding new command-line switches requires adding corresponding |
2290 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2283 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2291 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2284 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2292 }; | 2285 }; |
2293 | 2286 |
2294 const Experiment* experiments = kExperiments; | 2287 const Experiment* experiments = kExperiments; |
2295 size_t num_experiments = arraysize(kExperiments); | 2288 size_t num_experiments = arraysize(kExperiments); |
2296 | 2289 |
2297 // Stores and encapsulates the little state that about:flags has. | 2290 // Stores and encapsulates the little state that about:flags has. |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 } | 2860 } |
2868 | 2861 |
2869 const Experiment* GetExperiments(size_t* count) { | 2862 const Experiment* GetExperiments(size_t* count) { |
2870 *count = num_experiments; | 2863 *count = num_experiments; |
2871 return experiments; | 2864 return experiments; |
2872 } | 2865 } |
2873 | 2866 |
2874 } // namespace testing | 2867 } // namespace testing |
2875 | 2868 |
2876 } // namespace about_flags | 2869 } // namespace about_flags |
OLD | NEW |