| 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 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 kOsAndroid, | 2071 kOsAndroid, |
| 2072 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites, | 2072 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites, |
| 2073 switches::kDisableNTPPopularSites)}, | 2073 switches::kDisableNTPPopularSites)}, |
| 2074 #endif // defined(OS_ANDROID) | 2074 #endif // defined(OS_ANDROID) |
| 2075 #if defined(OS_WIN) | 2075 #if defined(OS_WIN) |
| 2076 {"trace-export-events-to-etw", | 2076 {"trace-export-events-to-etw", |
| 2077 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, | 2077 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, |
| 2078 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, | 2078 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, |
| 2079 kOsWin, | 2079 kOsWin, |
| 2080 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, | 2080 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, |
| 2081 {"merge-key-char-events", |
| 2082 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_NAME, |
| 2083 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_DESCRIPTION, |
| 2084 kOsWin, |
| 2085 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMergeKeyCharEvents, |
| 2086 switches::kDisableMergeKeyCharEvents)}, |
| 2081 #endif // defined(OS_WIN) | 2087 #endif // defined(OS_WIN) |
| 2082 // NOTE: Adding new command-line switches requires adding corresponding | 2088 // NOTE: Adding new command-line switches requires adding corresponding |
| 2083 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2089 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2084 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2090 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2085 }; | 2091 }; |
| 2086 | 2092 |
| 2087 const Experiment* experiments = kExperiments; | 2093 const Experiment* experiments = kExperiments; |
| 2088 size_t num_experiments = arraysize(kExperiments); | 2094 size_t num_experiments = arraysize(kExperiments); |
| 2089 | 2095 |
| 2090 // Stores and encapsulates the little state that about:flags has. | 2096 // Stores and encapsulates the little state that about:flags has. |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2714 } | 2720 } |
| 2715 | 2721 |
| 2716 const Experiment* GetExperiments(size_t* count) { | 2722 const Experiment* GetExperiments(size_t* count) { |
| 2717 *count = num_experiments; | 2723 *count = num_experiments; |
| 2718 return experiments; | 2724 return experiments; |
| 2719 } | 2725 } |
| 2720 | 2726 |
| 2721 } // namespace testing | 2727 } // namespace testing |
| 2722 | 2728 |
| 2723 } // namespace about_flags | 2729 } // namespace about_flags |
| OLD | NEW |