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 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 {"show-arc-files-app", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME, | 2192 {"show-arc-files-app", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME, |
2193 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS, | 2193 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS, |
2194 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, | 2194 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, |
2195 #endif // defined(OS_CHROMEOS) | 2195 #endif // defined(OS_CHROMEOS) |
2196 | 2196 |
2197 #if defined(OS_ANDROID) | 2197 #if defined(OS_ANDROID) |
2198 {"aia-fetching", IDS_FLAGS_AIA_FETCHING_NAME, | 2198 {"aia-fetching", IDS_FLAGS_AIA_FETCHING_NAME, |
2199 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid, | 2199 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid, |
2200 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)}, | 2200 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)}, |
2201 #endif | 2201 #endif |
| 2202 {"enable-midi-manager-dynamic-instantiation", |
| 2203 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
| 2204 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
| 2205 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)} |
2202 | 2206 |
2203 // NOTE: Adding new command-line switches requires adding corresponding | 2207 // NOTE: Adding new command-line switches requires adding corresponding |
2204 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2208 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2205 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2209 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2206 }; | 2210 }; |
2207 | 2211 |
2208 class FlagsStateSingleton { | 2212 class FlagsStateSingleton { |
2209 public: | 2213 public: |
2210 FlagsStateSingleton() | 2214 FlagsStateSingleton() |
2211 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2215 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2405 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2402 | 2406 |
2403 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2407 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2404 *count = arraysize(kFeatureEntries); | 2408 *count = arraysize(kFeatureEntries); |
2405 return kFeatureEntries; | 2409 return kFeatureEntries; |
2406 } | 2410 } |
2407 | 2411 |
2408 } // namespace testing | 2412 } // namespace testing |
2409 | 2413 |
2410 } // namespace about_flags | 2414 } // namespace about_flags |
OLD | NEW |