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 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2227 | 2227 |
2228 {"enable-midi-manager-dynamic-instantiation", | 2228 {"enable-midi-manager-dynamic-instantiation", |
2229 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, | 2229 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
2230 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, | 2230 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
2231 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, | 2231 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, |
2232 | 2232 |
2233 #if defined(OS_WIN) | 2233 #if defined(OS_WIN) |
2234 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, | 2234 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, |
2235 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, | 2235 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, |
2236 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, | 2236 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, |
| 2237 {"enable-desktop-ios-promotions", |
| 2238 IDS_FLAGS_ENABLE_DESKTOP_IOS_PROMOTIONS_NAME, |
| 2239 IDS_FLAGS_ENABLE_DESKTOP_IOS_PROMOTIONS_DESCRIPTION, kOsWin, |
| 2240 FEATURE_VALUE_TYPE(features::kDesktopIOSPromotion)}, |
2237 #endif // defined(OS_WIN) | 2241 #endif // defined(OS_WIN) |
2238 | 2242 |
2239 // NOTE: Adding new command-line switches requires adding corresponding | 2243 // NOTE: Adding new command-line switches requires adding corresponding |
2240 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2244 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2241 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2245 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2242 }; | 2246 }; |
2243 | 2247 |
2244 class FlagsStateSingleton { | 2248 class FlagsStateSingleton { |
2245 public: | 2249 public: |
2246 FlagsStateSingleton() | 2250 FlagsStateSingleton() |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2441 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2438 | 2442 |
2439 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2443 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2440 *count = arraysize(kFeatureEntries); | 2444 *count = arraysize(kFeatureEntries); |
2441 return kFeatureEntries; | 2445 return kFeatureEntries; |
2442 } | 2446 } |
2443 | 2447 |
2444 } // namespace testing | 2448 } // namespace testing |
2445 | 2449 |
2446 } // namespace about_flags | 2450 } // namespace about_flags |
OLD | NEW |