Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/public/common/content_features.h" | 6 #include "content/public/common/content_features.h" |
| 7 | 7 |
| 8 namespace features { | 8 namespace features { |
| 9 | 9 |
| 10 // All features in alphabetical order. | 10 // All features in alphabetical order. |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 | 288 |
| 289 // Service worker based payment apps as defined by w3c here: | 289 // Service worker based payment apps as defined by w3c here: |
| 290 // https://w3c.github.io/webpayments-payment-apps-api/ | 290 // https://w3c.github.io/webpayments-payment-apps-api/ |
| 291 const base::Feature kServiceWorkerPaymentApps{ | 291 const base::Feature kServiceWorkerPaymentApps{ |
| 292 "ServiceWorkerPaymentApps", | 292 "ServiceWorkerPaymentApps", |
| 293 base::FEATURE_DISABLED_BY_DEFAULT}; | 293 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 294 | 294 |
| 295 // The JavaScript API for payments on the web. | 295 // The JavaScript API for payments on the web. |
| 296 const base::Feature kWebPayments{"WebPayments", | 296 const base::Feature kWebPayments{"WebPayments", |
| 297 base::FEATURE_ENABLED_BY_DEFAULT}; | 297 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 298 | |
| 299 // Controls whether the WebNFC API is enabled: | |
| 300 // https://w3c.github.io/web-nfc/ | |
| 301 const base::Feature kWebNfc{"WebNFC", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 298 #else | 302 #else |
|
Alexei Svitkine (slow)
2017/04/19 16:43:52
Nit: Add // !defined(OS_ANDROID)
shalamov
2017/04/20 07:30:00
Done.
| |
| 299 // The JavaScript API for payments on the web. | 303 // The JavaScript API for payments on the web. |
| 300 const base::Feature kWebPayments{"WebPayments", | 304 const base::Feature kWebPayments{"WebPayments", |
| 301 base::FEATURE_DISABLED_BY_DEFAULT}; | 305 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 302 #endif | 306 #endif |
| 303 | 307 |
| 304 #if !defined(OS_ANDROID) | 308 #if !defined(OS_ANDROID) |
| 305 // Controls whether media playback in cross-origin iframes is enabled. The | 309 // Controls whether media playback in cross-origin iframes is enabled. The |
| 306 // feature overrides |kDisableGestureRequirementForMediaPlayback|. | 310 // feature overrides |kDisableGestureRequirementForMediaPlayback|. |
| 307 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{ | 311 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{ |
| 308 "CrossOriginMediaPlaybackRequiresUserGesture", | 312 "CrossOriginMediaPlaybackRequiresUserGesture", |
| 309 base::FEATURE_DISABLED_BY_DEFAULT}; | 313 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 310 #endif // !defined(OS_ANDROID) | 314 #endif // !defined(OS_ANDROID) |
| 311 | 315 |
| 312 #if defined(OS_WIN) | 316 #if defined(OS_WIN) |
| 313 // Emergency "off switch" for new Windows sandbox security mitigation, | 317 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 314 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 318 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 315 const base::Feature kWinSboxDisableExtensionPoints{ | 319 const base::Feature kWinSboxDisableExtensionPoints{ |
| 316 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 320 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 317 #endif | 321 #endif |
| 318 | 322 |
| 319 } // namespace features | 323 } // namespace features |
| OLD | NEW |