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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 WebRuntimeFeatures::enableScrollAnchoring(true); | 234 WebRuntimeFeatures::enableScrollAnchoring(true); |
235 | 235 |
236 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) | 236 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) |
237 WebRuntimeFeatures::enableSlimmingPaintV2(true); | 237 WebRuntimeFeatures::enableSlimmingPaintV2(true); |
238 | 238 |
239 // Note that it might already by true for OS_ANDROID, above. This is for | 239 // Note that it might already by true for OS_ANDROID, above. This is for |
240 // non-android versions. | 240 // non-android versions. |
241 if (base::FeatureList::IsEnabled(features::kNewMediaPlaybackUi)) | 241 if (base::FeatureList::IsEnabled(features::kNewMediaPlaybackUi)) |
242 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); | 242 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); |
243 | 243 |
| 244 if (base::FeatureList::IsEnabled( |
| 245 features::kNonValidatingReloadOnNormalReload)) { |
| 246 WebRuntimeFeatures::enableReloadwithoutSubResourceCacheRevalidation(true); |
| 247 } |
| 248 |
244 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) | 249 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) |
245 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); | 250 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); |
246 | 251 |
247 WebRuntimeFeatures::enableMediaDocumentDownloadButton( | 252 WebRuntimeFeatures::enableMediaDocumentDownloadButton( |
248 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); | 253 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); |
249 | 254 |
250 if (base::FeatureList::IsEnabled(features::kPointerEvents)) | 255 if (base::FeatureList::IsEnabled(features::kPointerEvents)) |
251 WebRuntimeFeatures::enablePointerEvent(true); | 256 WebRuntimeFeatures::enablePointerEvent(true); |
252 | 257 |
253 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) | 258 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 307 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
303 std::vector<std::string> disabled_features = base::SplitString( | 308 std::vector<std::string> disabled_features = base::SplitString( |
304 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 309 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
305 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 310 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
306 for (const std::string& feature : disabled_features) | 311 for (const std::string& feature : disabled_features) |
307 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 312 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
308 } | 313 } |
309 } | 314 } |
310 | 315 |
311 } // namespace content | 316 } // namespace content |
OLD | NEW |