| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "components/version_info/version_info.h" | 65 #include "components/version_info/version_info.h" |
| 66 #include "content/public/browser/user_metrics.h" | 66 #include "content/public/browser/user_metrics.h" |
| 67 #include "content/public/common/content_features.h" | 67 #include "content/public/common/content_features.h" |
| 68 #include "content/public/common/content_switches.h" | 68 #include "content/public/common/content_switches.h" |
| 69 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 69 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
| 70 #include "content/public/common/features.h" | 70 #include "content/public/common/features.h" |
| 71 #include "gin/public/gin_features.h" | 71 #include "gin/public/gin_features.h" |
| 72 #include "media/audio/audio_features.h" | 72 #include "media/audio/audio_features.h" |
| 73 #include "media/base/media_switches.h" | 73 #include "media/base/media_switches.h" |
| 74 #include "media/midi/midi_switches.h" | 74 #include "media/midi/midi_switches.h" |
| 75 #include "printing/features/features.h" |
| 75 #include "ui/base/ui_base_switches.h" | 76 #include "ui/base/ui_base_switches.h" |
| 76 #include "ui/compositor/compositor_switches.h" | 77 #include "ui/compositor/compositor_switches.h" |
| 77 #include "ui/display/display_switches.h" | 78 #include "ui/display/display_switches.h" |
| 78 #include "ui/events/event_switches.h" | 79 #include "ui/events/event_switches.h" |
| 79 #include "ui/gfx/switches.h" | 80 #include "ui/gfx/switches.h" |
| 80 #include "ui/gl/gl_features.h" | 81 #include "ui/gl/gl_features.h" |
| 81 #include "ui/gl/gl_switches.h" | 82 #include "ui/gl/gl_switches.h" |
| 82 #include "ui/keyboard/keyboard_switches.h" | 83 #include "ui/keyboard/keyboard_switches.h" |
| 83 #include "ui/native_theme/native_theme_switches.h" | 84 #include "ui/native_theme/native_theme_switches.h" |
| 84 #include "ui/views/views_switches.h" | 85 #include "ui/views/views_switches.h" |
| (...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2059 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME, | 2060 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME, |
| 2060 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS, | 2061 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS, |
| 2061 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)}, | 2062 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)}, |
| 2062 #endif // OS_CHROMEOS | 2063 #endif // OS_CHROMEOS |
| 2063 #if !defined(OS_ANDROID) | 2064 #if !defined(OS_ANDROID) |
| 2064 {"enable-default-media-session", | 2065 {"enable-default-media-session", |
| 2065 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME, | 2066 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME, |
| 2066 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop, | 2067 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop, |
| 2067 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)}, | 2068 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)}, |
| 2068 #endif // !OS_ANDROID | 2069 #endif // !OS_ANDROID |
| 2069 #if defined(ENABLE_PRINT_PREVIEW) | 2070 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 2070 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, | 2071 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, |
| 2071 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, | 2072 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, |
| 2072 FEATURE_VALUE_TYPE(features::kPrintScaling)}, | 2073 FEATURE_VALUE_TYPE(features::kPrintScaling)}, |
| 2073 #endif | 2074 #endif |
| 2074 // NOTE: Adding new command-line switches requires adding corresponding | 2075 // NOTE: Adding new command-line switches requires adding corresponding |
| 2075 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2076 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2076 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2077 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2077 }; | 2078 }; |
| 2078 | 2079 |
| 2079 class FlagsStateSingleton { | 2080 class FlagsStateSingleton { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2273 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2273 | 2274 |
| 2274 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2275 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2275 *count = arraysize(kFeatureEntries); | 2276 *count = arraysize(kFeatureEntries); |
| 2276 return kFeatureEntries; | 2277 return kFeatureEntries; |
| 2277 } | 2278 } |
| 2278 | 2279 |
| 2279 } // namespace testing | 2280 } // namespace testing |
| 2280 | 2281 |
| 2281 } // namespace about_flags | 2282 } // namespace about_flags |
| OLD | NEW |