| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "components/offline_pages/offline_page_feature.h" | 47 #include "components/offline_pages/offline_page_feature.h" |
| 48 #include "components/omnibox/browser/omnibox_switches.h" | 48 #include "components/omnibox/browser/omnibox_switches.h" |
| 49 #include "components/password_manager/core/common/password_manager_features.h" | 49 #include "components/password_manager/core/common/password_manager_features.h" |
| 50 #include "components/proximity_auth/switches.h" | 50 #include "components/proximity_auth/switches.h" |
| 51 #include "components/quirks/switches.h" | 51 #include "components/quirks/switches.h" |
| 52 #include "components/search/search_switches.h" | 52 #include "components/search/search_switches.h" |
| 53 #include "components/security_state/switches.h" | 53 #include "components/security_state/switches.h" |
| 54 #include "components/signin/core/common/signin_switches.h" | 54 #include "components/signin/core/common/signin_switches.h" |
| 55 #include "components/sync_driver/sync_driver_switches.h" | 55 #include "components/sync_driver/sync_driver_switches.h" |
| 56 #include "components/tracing/tracing_switches.h" | 56 #include "components/tracing/tracing_switches.h" |
| 57 #include "components/translate/core/browser/translate_prefs.h" |
| 57 #include "components/version_info/version_info.h" | 58 #include "components/version_info/version_info.h" |
| 58 #include "content/public/browser/user_metrics.h" | 59 #include "content/public/browser/user_metrics.h" |
| 59 #include "content/public/common/content_features.h" | 60 #include "content/public/common/content_features.h" |
| 60 #include "content/public/common/content_switches.h" | 61 #include "content/public/common/content_switches.h" |
| 61 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 62 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
| 62 #include "content/public/common/features.h" | 63 #include "content/public/common/features.h" |
| 63 #include "gin/public/gin_features.h" | 64 #include "gin/public/gin_features.h" |
| 64 #include "grit/components_strings.h" | 65 #include "grit/components_strings.h" |
| 65 #include "media/base/media_switches.h" | 66 #include "media/base/media_switches.h" |
| 66 #include "media/midi/midi_switches.h" | 67 #include "media/midi/midi_switches.h" |
| (...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 {"disable-pull-to-refresh-effect", IDS_FLAGS_PULL_TO_REFRESH_EFFECT_NAME, | 1181 {"disable-pull-to-refresh-effect", IDS_FLAGS_PULL_TO_REFRESH_EFFECT_NAME, |
| 1181 IDS_FLAGS_PULL_TO_REFRESH_EFFECT_DESCRIPTION, kOsAndroid, | 1182 IDS_FLAGS_PULL_TO_REFRESH_EFFECT_DESCRIPTION, kOsAndroid, |
| 1182 SINGLE_DISABLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)}, | 1183 SINGLE_DISABLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)}, |
| 1183 #endif | 1184 #endif |
| 1184 #if defined(OS_MACOSX) | 1185 #if defined(OS_MACOSX) |
| 1185 {"enable-translate-new-ux", IDS_FLAGS_TRANSLATE_NEW_UX_NAME, | 1186 {"enable-translate-new-ux", IDS_FLAGS_TRANSLATE_NEW_UX_NAME, |
| 1186 IDS_FLAGS_TRANSLATE_NEW_UX_DESCRIPTION, kOsMac, | 1187 IDS_FLAGS_TRANSLATE_NEW_UX_DESCRIPTION, kOsMac, |
| 1187 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, | 1188 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, |
| 1188 switches::kDisableTranslateNewUX)}, | 1189 switches::kDisableTranslateNewUX)}, |
| 1189 #endif | 1190 #endif |
| 1191 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) |
| 1192 {"translate-2016q2-ui", IDS_FLAGS_TRANSLATE_2016Q2_UI_NAME, |
| 1193 IDS_FLAGS_TRANSLATE_2016Q2_UI_DESCRIPTION, kOsCrOS | kOsWin | kOsLinux, |
| 1194 FEATURE_VALUE_TYPE(translate::kTranslateUI2016Q2)}, |
| 1195 #endif |
| 1190 #if defined(OS_MACOSX) | 1196 #if defined(OS_MACOSX) |
| 1191 {"enable-native-notifications", IDS_NOTIFICATIONS_NATIVE_FLAG, | 1197 {"enable-native-notifications", IDS_NOTIFICATIONS_NATIVE_FLAG, |
| 1192 IDS_NOTIFICATIONS_NATIVE_FLAG_DESCRIPTION, kOsMac, | 1198 IDS_NOTIFICATIONS_NATIVE_FLAG_DESCRIPTION, kOsMac, |
| 1193 SINGLE_VALUE_TYPE(switches::kEnableNativeNotifications)}, | 1199 SINGLE_VALUE_TYPE(switches::kEnableNativeNotifications)}, |
| 1194 #endif | 1200 #endif |
| 1195 #if defined(TOOLKIT_VIEWS) | 1201 #if defined(TOOLKIT_VIEWS) |
| 1196 {"disable-views-rect-based-targeting", // FLAGS:RECORD_UMA | 1202 {"disable-views-rect-based-targeting", // FLAGS:RECORD_UMA |
| 1197 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_NAME, | 1203 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_NAME, |
| 1198 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_DESCRIPTION, | 1204 IDS_FLAGS_VIEWS_RECT_BASED_TARGETING_DESCRIPTION, |
| 1199 kOsCrOS | kOsWin | kOsLinux, | 1205 kOsCrOS | kOsWin | kOsLinux, |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2024 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2030 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2025 | 2031 |
| 2026 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2032 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2027 *count = arraysize(kFeatureEntries); | 2033 *count = arraysize(kFeatureEntries); |
| 2028 return kFeatureEntries; | 2034 return kFeatureEntries; |
| 2029 } | 2035 } |
| 2030 | 2036 |
| 2031 } // namespace testing | 2037 } // namespace testing |
| 2032 | 2038 |
| 2033 } // namespace about_flags | 2039 } // namespace about_flags |
| OLD | NEW |