| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "ui/base/l10n/l10n_util.h" | 51 #include "ui/base/l10n/l10n_util.h" |
| 52 #include "ui/base/ui_base_switches.h" | 52 #include "ui/base/ui_base_switches.h" |
| 53 #include "ui/display/display_switches.h" | 53 #include "ui/display/display_switches.h" |
| 54 #include "ui/events/event_switches.h" | 54 #include "ui/events/event_switches.h" |
| 55 #include "ui/gfx/switches.h" | 55 #include "ui/gfx/switches.h" |
| 56 #include "ui/gl/gl_switches.h" | 56 #include "ui/gl/gl_switches.h" |
| 57 #include "ui/keyboard/keyboard_switches.h" | 57 #include "ui/keyboard/keyboard_switches.h" |
| 58 #include "ui/native_theme/native_theme_switches.h" | 58 #include "ui/native_theme/native_theme_switches.h" |
| 59 #include "ui/views/views_switches.h" | 59 #include "ui/views/views_switches.h" |
| 60 | 60 |
| 61 #if !defined(OS_ANDROID) | 61 #if defined(OS_ANDROID) |
| 62 #include "content/public/common/sandbox_init.h" |
| 63 #else |
| 62 #include "ui/message_center/message_center_switches.h" | 64 #include "ui/message_center/message_center_switches.h" |
| 63 #endif | 65 #endif |
| 64 | 66 |
| 65 #if defined(USE_ASH) | 67 #if defined(USE_ASH) |
| 66 #include "ash/ash_switches.h" | 68 #include "ash/ash_switches.h" |
| 67 #endif | 69 #endif |
| 68 | 70 |
| 69 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
| 70 #include "chromeos/chromeos_switches.h" | 72 #include "chromeos/chromeos_switches.h" |
| 71 #include "third_party/cros_system_api/switches/chrome_switches.h" | 73 #include "third_party/cros_system_api/switches/chrome_switches.h" |
| (...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1748 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableCreditCardScan, | 1750 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableCreditCardScan, |
| 1749 autofill::switches::kDisableCreditCardScan)}, | 1751 autofill::switches::kDisableCreditCardScan)}, |
| 1750 #if defined(OS_CHROMEOS) | 1752 #if defined(OS_CHROMEOS) |
| 1751 {"disable-captive-portal-bypass-proxy", | 1753 {"disable-captive-portal-bypass-proxy", |
| 1752 IDS_FLAGS_DISABLE_CAPTIVE_PORTAL_BYPASS_PROXY_NAME, | 1754 IDS_FLAGS_DISABLE_CAPTIVE_PORTAL_BYPASS_PROXY_NAME, |
| 1753 IDS_FLAGS_DISABLE_CAPTIVE_PORTAL_BYPASS_PROXY_DESCRIPTION, | 1755 IDS_FLAGS_DISABLE_CAPTIVE_PORTAL_BYPASS_PROXY_DESCRIPTION, |
| 1754 kOsCrOS, | 1756 kOsCrOS, |
| 1755 SINGLE_VALUE_TYPE(chromeos::switches::kDisableCaptivePortalBypassProxy)}, | 1757 SINGLE_VALUE_TYPE(chromeos::switches::kDisableCaptivePortalBypassProxy)}, |
| 1756 #endif // defined(OS_CHROMEOS) | 1758 #endif // defined(OS_CHROMEOS) |
| 1757 #if defined(OS_ANDROID) | 1759 #if defined(OS_ANDROID) |
| 1758 {"enable-seccomp-filter-sandbox", | 1760 {"enable-seccomp-sandbox-android", |
| 1759 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, | 1761 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, |
| 1760 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_DESCRIPTION, | 1762 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_DESCRIPTION, |
| 1761 kOsAndroid, | 1763 kOsAndroid, |
| 1762 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox)}, | 1764 FEATURE_VALUE_TYPE(content::kSeccompSandboxAndroidFeature)}, |
| 1763 #endif | 1765 #endif |
| 1764 {"enable-touch-hover", | 1766 {"enable-touch-hover", |
| 1765 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME, | 1767 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME, |
| 1766 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION, | 1768 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION, |
| 1767 kOsAndroid, | 1769 kOsAndroid, |
| 1768 SINGLE_VALUE_TYPE("enable-touch-hover")}, | 1770 SINGLE_VALUE_TYPE("enable-touch-hover")}, |
| 1769 {"enable-fill-on-account-select", | 1771 {"enable-fill-on-account-select", |
| 1770 IDS_FILL_ON_ACCOUNT_SELECT_NAME, | 1772 IDS_FILL_ON_ACCOUNT_SELECT_NAME, |
| 1771 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, | 1773 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, |
| 1772 kOsAll, | 1774 kOsAll, |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 FlagsState::GetInstance()->SetFeatureEntries(entries, count); | 2980 FlagsState::GetInstance()->SetFeatureEntries(entries, count); |
| 2979 } | 2981 } |
| 2980 | 2982 |
| 2981 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2983 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2982 return FlagsState::GetInstance()->GetFeatureEntries(count); | 2984 return FlagsState::GetInstance()->GetFeatureEntries(count); |
| 2983 } | 2985 } |
| 2984 | 2986 |
| 2985 } // namespace testing | 2987 } // namespace testing |
| 2986 | 2988 |
| 2987 } // namespace about_flags | 2989 } // namespace about_flags |
| OLD | NEW |