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 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)}, | 2068 FEATURE_VALUE_TYPE(features::kModalPermissionPrompts)}, |
2068 #endif | 2069 #endif |
2069 #if !defined(OS_MACOSX) | 2070 #if !defined(OS_MACOSX) |
2070 {"permission-prompt-persistence-toggle", | 2071 {"permission-prompt-persistence-toggle", |
2071 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, | 2072 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, |
2072 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, | 2073 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, |
2073 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, | 2074 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, |
2074 FEATURE_VALUE_TYPE( | 2075 FEATURE_VALUE_TYPE( |
2075 features::kDisplayPersistenceToggleInPermissionPrompts)}, | 2076 features::kDisplayPersistenceToggleInPermissionPrompts)}, |
2076 #endif | 2077 #endif |
2077 #if defined(ENABLE_PRINT_PREVIEW) | 2078 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
2078 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, | 2079 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, |
2079 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, | 2080 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, |
2080 FEATURE_VALUE_TYPE(features::kPrintScaling)}, | 2081 FEATURE_VALUE_TYPE(features::kPrintScaling)}, |
2081 #endif // !defined(OS_ANDROID) | 2082 #endif // !defined(OS_ANDROID) |
2082 #if defined(OS_ANDROID) | 2083 #if defined(OS_ANDROID) |
2083 {"enable-consistent-omnibox-geolocation", | 2084 {"enable-consistent-omnibox-geolocation", |
2084 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, | 2085 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, |
2085 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, | 2086 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, |
2086 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, | 2087 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, |
2087 #endif | 2088 #endif |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2287 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2287 | 2288 |
2288 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2289 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2289 *count = arraysize(kFeatureEntries); | 2290 *count = arraysize(kFeatureEntries); |
2290 return kFeatureEntries; | 2291 return kFeatureEntries; |
2291 } | 2292 } |
2292 | 2293 |
2293 } // namespace testing | 2294 } // namespace testing |
2294 | 2295 |
2295 } // namespace about_flags | 2296 } // namespace about_flags |
OLD | NEW |