| 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 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2301 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirewallHolePunching) | 2301 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirewallHolePunching) |
| 2302 }, | 2302 }, |
| 2303 #endif // defined(OS_CHROMEOS) | 2303 #endif // defined(OS_CHROMEOS) |
| 2304 { | 2304 { |
| 2305 "enable-media-router", | 2305 "enable-media-router", |
| 2306 IDS_FLAGS_ENABLE_MEDIA_ROUTER_NAME, | 2306 IDS_FLAGS_ENABLE_MEDIA_ROUTER_NAME, |
| 2307 IDS_FLAGS_ENABLE_MEDIA_ROUTER_DESCRIPTION, | 2307 IDS_FLAGS_ENABLE_MEDIA_ROUTER_DESCRIPTION, |
| 2308 kOsAll, | 2308 kOsAll, |
| 2309 SINGLE_VALUE_TYPE(switches::kEnableMediaRouter) | 2309 SINGLE_VALUE_TYPE(switches::kEnableMediaRouter) |
| 2310 }, | 2310 }, |
| 2311 { | |
| 2312 "enable-cert-collection", | |
| 2313 IDS_ENABLE_INVALID_CERT_COLLECTION, | |
| 2314 IDS_ENABLE_INVALID_CERT_COLLECTION_DESCRIPTION, | |
| 2315 kOsAll, | |
| 2316 SINGLE_VALUE_TYPE(switches::kEnableInvalidCertCollection) | |
| 2317 }, | |
| 2318 // Since kEnableLauncherSearchProviderApi is not available when app list is | 2311 // Since kEnableLauncherSearchProviderApi is not available when app list is |
| 2319 // disabled, flag guard enable-launcher-search-provider-api. | 2312 // disabled, flag guard enable-launcher-search-provider-api. |
| 2320 #if defined(ENABLE_APP_LIST) | 2313 #if defined(ENABLE_APP_LIST) |
| 2321 { | 2314 { |
| 2322 "enable-launcher-search-provider-api", | 2315 "enable-launcher-search-provider-api", |
| 2323 IDS_FLAGS_ENABLE_LAUNCHER_SEARCH_PROVIDER_API, | 2316 IDS_FLAGS_ENABLE_LAUNCHER_SEARCH_PROVIDER_API, |
| 2324 IDS_FLAGS_ENABLE_LAUNCHER_SEARCH_PROVIDER_API_DESCRIPTION, | 2317 IDS_FLAGS_ENABLE_LAUNCHER_SEARCH_PROVIDER_API_DESCRIPTION, |
| 2325 kOsCrOS, | 2318 kOsCrOS, |
| 2326 SINGLE_VALUE_TYPE(app_list::switches::kEnableLauncherSearchProviderApi) | 2319 SINGLE_VALUE_TYPE(app_list::switches::kEnableLauncherSearchProviderApi) |
| 2327 }, | 2320 }, |
| 2328 #endif // defined(ENABLE_APP_LIST) | 2321 #endif // defined(ENABLE_APP_LIST) |
| 2329 #if defined(OS_CHROMEOS) | 2322 #if defined(OS_CHROMEOS) |
| 2330 { | 2323 { |
| 2331 "enable-mtp-write-support", | 2324 "enable-mtp-write-support", |
| 2332 IDS_FLAG_ENABLE_MTP_WRITE_SUPPORT_NAME, | 2325 IDS_FLAG_ENABLE_MTP_WRITE_SUPPORT_NAME, |
| 2333 IDS_FLAG_ENABLE_MTP_WRITE_SUPPORT_DESCRIPTION, | 2326 IDS_FLAG_ENABLE_MTP_WRITE_SUPPORT_DESCRIPTION, |
| 2334 kOsCrOS, | 2327 kOsCrOS, |
| 2335 SINGLE_VALUE_TYPE(chromeos::switches::kEnableMtpWriteSupport) | 2328 SINGLE_VALUE_TYPE(chromeos::switches::kEnableMtpWriteSupport) |
| 2336 }, | 2329 }, |
| 2337 #endif // defined(OS_CHROMEOS) | 2330 #endif // defined(OS_CHROMEOS) |
| 2338 | |
| 2339 // NOTE: Adding new command-line switches requires adding corresponding | 2331 // NOTE: Adding new command-line switches requires adding corresponding |
| 2340 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2332 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2341 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2333 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2342 }; | 2334 }; |
| 2343 | 2335 |
| 2344 const Experiment* experiments = kExperiments; | 2336 const Experiment* experiments = kExperiments; |
| 2345 size_t num_experiments = arraysize(kExperiments); | 2337 size_t num_experiments = arraysize(kExperiments); |
| 2346 | 2338 |
| 2347 // Stores and encapsulates the little state that about:flags has. | 2339 // Stores and encapsulates the little state that about:flags has. |
| 2348 class FlagsState { | 2340 class FlagsState { |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2917 } | 2909 } |
| 2918 | 2910 |
| 2919 const Experiment* GetExperiments(size_t* count) { | 2911 const Experiment* GetExperiments(size_t* count) { |
| 2920 *count = num_experiments; | 2912 *count = num_experiments; |
| 2921 return experiments; | 2913 return experiments; |
| 2922 } | 2914 } |
| 2923 | 2915 |
| 2924 } // namespace testing | 2916 } // namespace testing |
| 2925 | 2917 |
| 2926 } // namespace about_flags | 2918 } // namespace about_flags |
| OLD | NEW |