| 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> |
| 11 | 11 |
| 12 #include "base/base_features.h" |
| 12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 13 #include "base/callback.h" | 14 #include "base/callback.h" |
| 14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 15 #include "base/feature_list.h" | 16 #include "base/feature_list.h" |
| 16 #include "base/i18n/base_i18n_switches.h" | 17 #include "base/i18n/base_i18n_switches.h" |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| 18 #include "base/memory/singleton.h" | 19 #include "base/memory/singleton.h" |
| 19 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
| 20 #include "base/metrics/metrics_hashes.h" | 21 #include "base/metrics/metrics_hashes.h" |
| 21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
| (...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 flag_descriptions::kMemoryPressureThresholdName, | 1635 flag_descriptions::kMemoryPressureThresholdName, |
| 1635 flag_descriptions::kMemoryPressureThresholdDescription, kOsCrOS, | 1636 flag_descriptions::kMemoryPressureThresholdDescription, kOsCrOS, |
| 1636 MULTI_VALUE_TYPE(kMemoryPressureThresholdChoices)}, | 1637 MULTI_VALUE_TYPE(kMemoryPressureThresholdChoices)}, |
| 1637 {"wake-on-wifi-packet", flag_descriptions::kWakeOnPacketsName, | 1638 {"wake-on-wifi-packet", flag_descriptions::kWakeOnPacketsName, |
| 1638 flag_descriptions::kWakeOnPacketsDescription, kOsCrOSOwnerOnly, | 1639 flag_descriptions::kWakeOnPacketsDescription, kOsCrOSOwnerOnly, |
| 1639 SINGLE_VALUE_TYPE(chromeos::switches::kWakeOnWifiPacket)}, | 1640 SINGLE_VALUE_TYPE(chromeos::switches::kWakeOnWifiPacket)}, |
| 1640 #endif // OS_CHROMEOS | 1641 #endif // OS_CHROMEOS |
| 1641 {"enable-memory-coordinator", flag_descriptions::kMemoryCoordinatorName, | 1642 {"enable-memory-coordinator", flag_descriptions::kMemoryCoordinatorName, |
| 1642 flag_descriptions::kMemoryCoordinatorDescription, | 1643 flag_descriptions::kMemoryCoordinatorDescription, |
| 1643 kOsAndroid | kOsCrOS | kOsLinux | kOsWin, | 1644 kOsAndroid | kOsCrOS | kOsLinux | kOsWin, |
| 1644 FEATURE_VALUE_TYPE(features::kMemoryCoordinator)}, | 1645 FEATURE_VALUE_TYPE(base::features::kMemoryCoordinator)}, |
| 1645 {"enable-tab-audio-muting", flag_descriptions::kTabAudioMutingName, | 1646 {"enable-tab-audio-muting", flag_descriptions::kTabAudioMutingName, |
| 1646 flag_descriptions::kTabAudioMutingDescription, kOsDesktop, | 1647 flag_descriptions::kTabAudioMutingDescription, kOsDesktop, |
| 1647 SINGLE_VALUE_TYPE(switches::kEnableTabAudioMuting)}, | 1648 SINGLE_VALUE_TYPE(switches::kEnableTabAudioMuting)}, |
| 1648 {"enable-credential-manager-api", | 1649 {"enable-credential-manager-api", |
| 1649 flag_descriptions::kCredentialManagerApiName, | 1650 flag_descriptions::kCredentialManagerApiName, |
| 1650 flag_descriptions::kCredentialManagerApiDescription, kOsAll, | 1651 flag_descriptions::kCredentialManagerApiDescription, kOsAll, |
| 1651 FEATURE_VALUE_TYPE(features::kCredentialManagementAPI)}, | 1652 FEATURE_VALUE_TYPE(features::kCredentialManagementAPI)}, |
| 1652 {"reduced-referrer-granularity", | 1653 {"reduced-referrer-granularity", |
| 1653 flag_descriptions::kReducedReferrerGranularityName, | 1654 flag_descriptions::kReducedReferrerGranularityName, |
| 1654 flag_descriptions::kReducedReferrerGranularityDescription, kOsAll, | 1655 flag_descriptions::kReducedReferrerGranularityDescription, kOsAll, |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2833 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2834 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2834 | 2835 |
| 2835 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2836 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2836 *count = arraysize(kFeatureEntries); | 2837 *count = arraysize(kFeatureEntries); |
| 2837 return kFeatureEntries; | 2838 return kFeatureEntries; |
| 2838 } | 2839 } |
| 2839 | 2840 |
| 2840 } // namespace testing | 2841 } // namespace testing |
| 2841 | 2842 |
| 2842 } // namespace about_flags | 2843 } // namespace about_flags |
| OLD | NEW |