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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2138 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites, | 2138 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites, |
2139 switches::kDisableNTPPopularSites)}, | 2139 switches::kDisableNTPPopularSites)}, |
2140 #endif // defined(OS_ANDROID) | 2140 #endif // defined(OS_ANDROID) |
2141 #if defined(OS_WIN) | 2141 #if defined(OS_WIN) |
2142 {"trace-export-events-to-etw", | 2142 {"trace-export-events-to-etw", |
2143 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, | 2143 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, |
2144 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, | 2144 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, |
2145 kOsWin, | 2145 kOsWin, |
2146 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, | 2146 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, |
2147 #endif // defined(OS_WIN) | 2147 #endif // defined(OS_WIN) |
2148 {"enable-webusb-notification", | |
2149 IDS_FLAGS_ENABLE_WEBUSB_NOTIFICATION_NAME, | |
2150 IDS_FLAGS_ENABLE_WEBUSB_NOTIFICATION_DESCRIPTION, | |
2151 kOsAll, | |
Reilly Grant (use Gerrit)
2015/08/18 00:23:43
kOsAllDesktop
juncai
2015/08/18 17:39:59
Done.
| |
2152 SINGLE_VALUE_TYPE(switches::kEnableWebUsbNotification)}, | |
2148 // NOTE: Adding new command-line switches requires adding corresponding | 2153 // NOTE: Adding new command-line switches requires adding corresponding |
2149 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2154 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2150 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2155 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2151 }; | 2156 }; |
2152 | 2157 |
2153 const Experiment* experiments = kExperiments; | 2158 const Experiment* experiments = kExperiments; |
2154 size_t num_experiments = arraysize(kExperiments); | 2159 size_t num_experiments = arraysize(kExperiments); |
2155 | 2160 |
2156 // Stores and encapsulates the little state that about:flags has. | 2161 // Stores and encapsulates the little state that about:flags has. |
2157 class FlagsState { | 2162 class FlagsState { |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2780 } | 2785 } |
2781 | 2786 |
2782 const Experiment* GetExperiments(size_t* count) { | 2787 const Experiment* GetExperiments(size_t* count) { |
2783 *count = num_experiments; | 2788 *count = num_experiments; |
2784 return experiments; | 2789 return experiments; |
2785 } | 2790 } |
2786 | 2791 |
2787 } // namespace testing | 2792 } // namespace testing |
2788 | 2793 |
2789 } // namespace about_flags | 2794 } // namespace about_flags |
OLD | NEW |