| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 WebRuntimeFeatures::EnableGamepadExtensions(true); | 336 WebRuntimeFeatures::EnableGamepadExtensions(true); |
| 337 | 337 |
| 338 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) | 338 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) |
| 339 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", | 339 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", |
| 340 true); | 340 true); |
| 341 | 341 |
| 342 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) | 342 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) |
| 343 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", | 343 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", |
| 344 false); | 344 false); |
| 345 | 345 |
| 346 if (base::FeatureList::IsEnabled(features::kNotCompositeSmallScroller)) |
| 347 WebRuntimeFeatures::EnableNotCompositeSmallScroller(true); |
| 348 |
| 346 if (base::FeatureList::IsEnabled(features::kGenericSensor)) | 349 if (base::FeatureList::IsEnabled(features::kGenericSensor)) |
| 347 WebRuntimeFeatures::EnableGenericSensor(true); | 350 WebRuntimeFeatures::EnableGenericSensor(true); |
| 348 | 351 |
| 349 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) | 352 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) |
| 350 WebRuntimeFeatures::EnableLoadingWithMojo(true); | 353 WebRuntimeFeatures::EnableLoadingWithMojo(true); |
| 351 | 354 |
| 352 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) { | 355 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) { |
| 353 WebRuntimeFeatures::EnableFeatureFromString("BlockCredentialedSubresources", | 356 WebRuntimeFeatures::EnableFeatureFromString("BlockCredentialedSubresources", |
| 354 false); | 357 false); |
| 355 } | 358 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 390 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 388 std::vector<std::string> disabled_features = base::SplitString( | 391 std::vector<std::string> disabled_features = base::SplitString( |
| 389 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 392 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 390 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 393 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 391 for (const std::string& feature : disabled_features) | 394 for (const std::string& feature : disabled_features) |
| 392 WebRuntimeFeatures::EnableFeatureFromString(feature, false); | 395 WebRuntimeFeatures::EnableFeatureFromString(feature, false); |
| 393 } | 396 } |
| 394 } | 397 } |
| 395 | 398 |
| 396 } // namespace content | 399 } // namespace content |
| OLD | NEW |