| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "components/security_state/core/security_state.h" | 61 #include "components/security_state/core/security_state.h" |
| 62 #include "components/security_state/core/switches.h" | 62 #include "components/security_state/core/switches.h" |
| 63 #include "components/signin/core/common/signin_switches.h" | 63 #include "components/signin/core/common/signin_switches.h" |
| 64 #include "components/spellcheck/common/spellcheck_features.h" | 64 #include "components/spellcheck/common/spellcheck_features.h" |
| 65 #include "components/spellcheck/common/spellcheck_switches.h" | 65 #include "components/spellcheck/common/spellcheck_switches.h" |
| 66 #include "components/spellcheck/spellcheck_build_features.h" | 66 #include "components/spellcheck/spellcheck_build_features.h" |
| 67 #include "components/ssl_config/ssl_config_switches.h" | 67 #include "components/ssl_config/ssl_config_switches.h" |
| 68 #include "components/strings/grit/components_strings.h" | 68 #include "components/strings/grit/components_strings.h" |
| 69 #include "components/sync/driver/sync_driver_switches.h" | 69 #include "components/sync/driver/sync_driver_switches.h" |
| 70 #include "components/tracing/common/tracing_switches.h" | 70 #include "components/tracing/common/tracing_switches.h" |
| 71 #include "components/translate/core/browser/translate_infobar_delegate.h" |
| 71 #include "components/translate/core/browser/translate_manager.h" | 72 #include "components/translate/core/browser/translate_manager.h" |
| 72 #include "components/translate/core/browser/translate_prefs.h" | 73 #include "components/translate/core/browser/translate_prefs.h" |
| 73 #include "components/version_info/version_info.h" | 74 #include "components/version_info/version_info.h" |
| 74 #include "content/public/common/content_features.h" | 75 #include "content/public/common/content_features.h" |
| 75 #include "content/public/common/content_switches.h" | 76 #include "content/public/common/content_switches.h" |
| 76 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 77 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
| 77 #include "content/public/common/features.h" | 78 #include "content/public/common/features.h" |
| 78 #include "device/base/features.h" | 79 #include "device/base/features.h" |
| 79 #include "device/vr/features/features.h" | 80 #include "device/vr/features/features.h" |
| 80 #include "extensions/features/features.h" | 81 #include "extensions/features/features.h" |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 {"enable-hosted-app-quit-notification", | 1599 {"enable-hosted-app-quit-notification", |
| 1599 flag_descriptions::kHostedAppQuitNotificationName, | 1600 flag_descriptions::kHostedAppQuitNotificationName, |
| 1600 flag_descriptions::kHostedAppQuitNotificationDescription, kOsMac, | 1601 flag_descriptions::kHostedAppQuitNotificationDescription, kOsMac, |
| 1601 SINGLE_VALUE_TYPE(switches::kHostedAppQuitNotification)}, | 1602 SINGLE_VALUE_TYPE(switches::kHostedAppQuitNotification)}, |
| 1602 #endif // OS_MACOSX | 1603 #endif // OS_MACOSX |
| 1603 #if defined(OS_ANDROID) | 1604 #if defined(OS_ANDROID) |
| 1604 {"disable-pull-to-refresh-effect", | 1605 {"disable-pull-to-refresh-effect", |
| 1605 flag_descriptions::kPullToRefreshEffectName, | 1606 flag_descriptions::kPullToRefreshEffectName, |
| 1606 flag_descriptions::kPullToRefreshEffectDescription, kOsAndroid, | 1607 flag_descriptions::kPullToRefreshEffectDescription, kOsAndroid, |
| 1607 SINGLE_DISABLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)}, | 1608 SINGLE_DISABLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)}, |
| 1609 {"translate-compact-infobar", flag_descriptions::kTranslateCompactUIName, |
| 1610 flag_descriptions::kTranslateCompactUIDescription, kOsAndroid, |
| 1611 FEATURE_VALUE_TYPE(translate::kTranslateCompactUI)}, |
| 1608 #endif // OS_ANDROID | 1612 #endif // OS_ANDROID |
| 1609 #if defined(OS_MACOSX) | 1613 #if defined(OS_MACOSX) |
| 1610 {"enable-translate-new-ux", flag_descriptions::kTranslateNewUxName, | 1614 {"enable-translate-new-ux", flag_descriptions::kTranslateNewUxName, |
| 1611 flag_descriptions::kTranslateNewUxDescription, kOsMac, | 1615 flag_descriptions::kTranslateNewUxDescription, kOsMac, |
| 1612 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, | 1616 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, |
| 1613 switches::kDisableTranslateNewUX)}, | 1617 switches::kDisableTranslateNewUX)}, |
| 1614 #endif // OS_MACOSX | 1618 #endif // OS_MACOSX |
| 1615 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) | 1619 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) |
| 1616 {"translate-2016q2-ui", flag_descriptions::kTranslate2016q2UiName, | 1620 {"translate-2016q2-ui", flag_descriptions::kTranslate2016q2UiName, |
| 1617 flag_descriptions::kTranslate2016q2UiDescription, | 1621 flag_descriptions::kTranslate2016q2UiDescription, |
| (...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3010 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3014 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3011 | 3015 |
| 3012 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3016 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3013 *count = arraysize(kFeatureEntries); | 3017 *count = arraysize(kFeatureEntries); |
| 3014 return kFeatureEntries; | 3018 return kFeatureEntries; |
| 3015 } | 3019 } |
| 3016 | 3020 |
| 3017 } // namespace testing | 3021 } // namespace testing |
| 3018 | 3022 |
| 3019 } // namespace about_flags | 3023 } // namespace about_flags |
| OLD | NEW |