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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include "ui/display/display_switches.h" | 74 #include "ui/display/display_switches.h" |
75 #include "ui/events/event_switches.h" | 75 #include "ui/events/event_switches.h" |
76 #include "ui/gfx/switches.h" | 76 #include "ui/gfx/switches.h" |
77 #include "ui/gl/gl_switches.h" | 77 #include "ui/gl/gl_switches.h" |
78 #include "ui/keyboard/keyboard_switches.h" | 78 #include "ui/keyboard/keyboard_switches.h" |
79 #include "ui/native_theme/native_theme_switches.h" | 79 #include "ui/native_theme/native_theme_switches.h" |
80 #include "ui/views/views_switches.h" | 80 #include "ui/views/views_switches.h" |
81 | 81 |
82 #if defined(OS_ANDROID) | 82 #if defined(OS_ANDROID) |
83 #include "chrome/browser/android/chrome_feature_list.h" | 83 #include "chrome/browser/android/chrome_feature_list.h" |
| 84 #include "components/autofill/core/browser/autofill_experiments.h" |
84 #else | 85 #else |
85 #include "ui/message_center/message_center_switches.h" | 86 #include "ui/message_center/message_center_switches.h" |
86 #endif | 87 #endif |
87 | 88 |
88 #if defined(OS_CHROMEOS) | 89 #if defined(OS_CHROMEOS) |
89 #include "chromeos/chromeos_switches.h" | 90 #include "chromeos/chromeos_switches.h" |
90 #include "third_party/cros_system_api/switches/chrome_switches.h" | 91 #include "third_party/cros_system_api/switches/chrome_switches.h" |
91 #endif | 92 #endif |
92 | 93 |
93 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 FEATURE_VALUE_TYPE(features::kCredentialManagementAPI)}, | 1473 FEATURE_VALUE_TYPE(features::kCredentialManagementAPI)}, |
1473 {"reduced-referrer-granularity", | 1474 {"reduced-referrer-granularity", |
1474 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, | 1475 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, |
1475 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, kOsAll, | 1476 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, kOsAll, |
1476 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity)}, | 1477 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity)}, |
1477 #if defined(OS_CHROMEOS) | 1478 #if defined(OS_CHROMEOS) |
1478 {"disable-new-zip-unpacker", IDS_FLAGS_NEW_ZIP_UNPACKER_NAME, | 1479 {"disable-new-zip-unpacker", IDS_FLAGS_NEW_ZIP_UNPACKER_NAME, |
1479 IDS_FLAGS_NEW_ZIP_UNPACKER_DESCRIPTION, kOsCrOS, | 1480 IDS_FLAGS_NEW_ZIP_UNPACKER_DESCRIPTION, kOsCrOS, |
1480 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)}, | 1481 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)}, |
1481 #endif // defined(OS_CHROMEOS) | 1482 #endif // defined(OS_CHROMEOS) |
| 1483 #if defined(OS_ANDROID) |
| 1484 {"enable-credit-card-assist", IDS_FLAGS_CREDIT_CARD_ASSIST_NAME, |
| 1485 IDS_FLAGS_CREDIT_CARD_ASSIST_DESCRIPTION, kOsAndroid, |
| 1486 FEATURE_VALUE_TYPE(autofill::kAutofillCreditCardAssist)}, |
1482 {"enable-credit-card-scan", IDS_FLAGS_CREDIT_CARD_SCAN_NAME, | 1487 {"enable-credit-card-scan", IDS_FLAGS_CREDIT_CARD_SCAN_NAME, |
1483 IDS_FLAGS_CREDIT_CARD_SCAN_DESCRIPTION, kOsAndroid, | 1488 IDS_FLAGS_CREDIT_CARD_SCAN_DESCRIPTION, kOsAndroid, |
1484 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableCreditCardScan, | 1489 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableCreditCardScan, |
1485 autofill::switches::kDisableCreditCardScan)}, | 1490 autofill::switches::kDisableCreditCardScan)}, |
| 1491 #endif // defined(OS_ANDROID) |
1486 #if defined(OS_CHROMEOS) | 1492 #if defined(OS_CHROMEOS) |
1487 {"disable-captive-portal-bypass-proxy", | 1493 {"disable-captive-portal-bypass-proxy", |
1488 IDS_FLAGS_CAPTIVE_PORTAL_BYPASS_PROXY_NAME, | 1494 IDS_FLAGS_CAPTIVE_PORTAL_BYPASS_PROXY_NAME, |
1489 IDS_FLAGS_CAPTIVE_PORTAL_BYPASS_PROXY_DESCRIPTION, kOsCrOS, | 1495 IDS_FLAGS_CAPTIVE_PORTAL_BYPASS_PROXY_DESCRIPTION, kOsCrOS, |
1490 SINGLE_DISABLE_VALUE_TYPE( | 1496 SINGLE_DISABLE_VALUE_TYPE( |
1491 chromeos::switches::kDisableCaptivePortalBypassProxy)}, | 1497 chromeos::switches::kDisableCaptivePortalBypassProxy)}, |
1492 #endif // defined(OS_CHROMEOS) | 1498 #endif // defined(OS_CHROMEOS) |
1493 #if defined(OS_ANDROID) | 1499 #if defined(OS_ANDROID) |
1494 {"enable-seccomp-sandbox-android", | 1500 {"enable-seccomp-sandbox-android", |
1495 IDS_FLAGS_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, | 1501 IDS_FLAGS_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2212 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2218 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2213 | 2219 |
2214 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2220 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2215 *count = arraysize(kFeatureEntries); | 2221 *count = arraysize(kFeatureEntries); |
2216 return kFeatureEntries; | 2222 return kFeatureEntries; |
2217 } | 2223 } |
2218 | 2224 |
2219 } // namespace testing | 2225 } // namespace testing |
2220 | 2226 |
2221 } // namespace about_flags | 2227 } // namespace about_flags |
OLD | NEW |