| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/runtime_features.h" | 5 #include "content/child/runtime_features.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 WebRuntimeFeatures::EnableGamepadExtensions(true); | 342 WebRuntimeFeatures::EnableGamepadExtensions(true); |
| 343 | 343 |
| 344 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) | 344 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) |
| 345 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", | 345 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", |
| 346 true); | 346 true); |
| 347 | 347 |
| 348 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) | 348 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) |
| 349 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", | 349 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", |
| 350 false); | 350 false); |
| 351 | 351 |
| 352 if (base::FeatureList::IsEnabled(features::kSkipCompositingSmallScrollers)) |
| 353 WebRuntimeFeatures::EnableSkipCompositingSmallScrollers(true); |
| 354 |
| 352 if (base::FeatureList::IsEnabled(features::kGenericSensor)) | 355 if (base::FeatureList::IsEnabled(features::kGenericSensor)) |
| 353 WebRuntimeFeatures::EnableGenericSensor(true); | 356 WebRuntimeFeatures::EnableGenericSensor(true); |
| 354 | 357 |
| 355 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) | 358 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) |
| 356 WebRuntimeFeatures::EnableLoadingWithMojo(true); | 359 WebRuntimeFeatures::EnableLoadingWithMojo(true); |
| 357 | 360 |
| 358 WebRuntimeFeatures::EnableMediaCastOverlayButton( | 361 WebRuntimeFeatures::EnableMediaCastOverlayButton( |
| 359 base::FeatureList::IsEnabled(media::kMediaCastOverlayButton)); | 362 base::FeatureList::IsEnabled(media::kMediaCastOverlayButton)); |
| 360 | 363 |
| 361 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) { | 364 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 399 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 397 std::vector<std::string> disabled_features = base::SplitString( | 400 std::vector<std::string> disabled_features = base::SplitString( |
| 398 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 401 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 399 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 402 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 400 for (const std::string& feature : disabled_features) | 403 for (const std::string& feature : disabled_features) |
| 401 WebRuntimeFeatures::EnableFeatureFromString(feature, false); | 404 WebRuntimeFeatures::EnableFeatureFromString(feature, false); |
| 402 } | 405 } |
| 403 } | 406 } |
| 404 | 407 |
| 405 } // namespace content | 408 } // namespace content |
| OLD | NEW |