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 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2080 SINGLE_VALUE_TYPE("enable-touch-hover") | 2080 SINGLE_VALUE_TYPE("enable-touch-hover") |
2081 }, | 2081 }, |
2082 { | 2082 { |
2083 "enable-fill-on-account-select", | 2083 "enable-fill-on-account-select", |
2084 IDS_FILL_ON_ACCOUNT_SELECT_NAME, | 2084 IDS_FILL_ON_ACCOUNT_SELECT_NAME, |
2085 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, | 2085 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, |
2086 kOsAll, | 2086 kOsAll, |
2087 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect, | 2087 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect, |
2088 autofill::switches::kDisableFillOnAccountSelect) | 2088 autofill::switches::kDisableFillOnAccountSelect) |
2089 }, | 2089 }, |
| 2090 #if defined(OS_CHROMEOS) |
| 2091 { |
| 2092 "enable-wifi-credential-sync", // FLAGS:RECORD_UMA |
| 2093 IDS_FLAGS_ENABLE_WIFI_CREDENTIAL_SYNC_NAME, |
| 2094 IDS_FLAGS_ENABLE_WIFI_CREDENTIAL_SYNC_DESCRIPTION, |
| 2095 kOsCrOS, |
| 2096 SINGLE_VALUE_TYPE(switches::kEnableWifiCredentialSync) |
| 2097 }, |
| 2098 #endif |
2090 | 2099 |
2091 // NOTE: Adding new command-line switches requires adding corresponding | 2100 // NOTE: Adding new command-line switches requires adding corresponding |
2092 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2101 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2093 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2102 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2094 }; | 2103 }; |
2095 | 2104 |
2096 const Experiment* experiments = kExperiments; | 2105 const Experiment* experiments = kExperiments; |
2097 size_t num_experiments = arraysize(kExperiments); | 2106 size_t num_experiments = arraysize(kExperiments); |
2098 | 2107 |
2099 // Stores and encapsulates the little state that about:flags has. | 2108 // Stores and encapsulates the little state that about:flags has. |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 } | 2668 } |
2660 | 2669 |
2661 const Experiment* GetExperiments(size_t* count) { | 2670 const Experiment* GetExperiments(size_t* count) { |
2662 *count = num_experiments; | 2671 *count = num_experiments; |
2663 return experiments; | 2672 return experiments; |
2664 } | 2673 } |
2665 | 2674 |
2666 } // namespace testing | 2675 } // namespace testing |
2667 | 2676 |
2668 } // namespace about_flags | 2677 } // namespace about_flags |
OLD | NEW |