| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 WebRuntimeFeatures::enableRootLayerScrolling(true); | 183 WebRuntimeFeatures::enableRootLayerScrolling(true); |
| 184 | 184 |
| 185 if (command_line.HasSwitch(switches::kDisablePermissionsAPI)) | 185 if (command_line.HasSwitch(switches::kDisablePermissionsAPI)) |
| 186 WebRuntimeFeatures::enablePermissionsAPI(false); | 186 WebRuntimeFeatures::enablePermissionsAPI(false); |
| 187 | 187 |
| 188 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) | 188 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) |
| 189 WebRuntimeFeatures::enableV8IdleTasks(false); | 189 WebRuntimeFeatures::enableV8IdleTasks(false); |
| 190 else | 190 else |
| 191 WebRuntimeFeatures::enableV8IdleTasks(true); | 191 WebRuntimeFeatures::enableV8IdleTasks(true); |
| 192 | 192 |
| 193 if (command_line.HasSwitch(switches::kEnableUnsafeES3APIs)) | 193 // if (command_line.HasSwitch(switches::kEnableUnsafeES3APIs)) |
| 194 WebRuntimeFeatures::enableUnsafeES3APIs(true); | 194 // WebRuntimeFeatures::enableUnsafeES3APIs(true); |
| 195 | 195 |
| 196 if (command_line.HasSwitch(switches::kEnableWebVR)) | 196 if (command_line.HasSwitch(switches::kEnableWebVR)) |
| 197 WebRuntimeFeatures::enableWebVR(true); | 197 WebRuntimeFeatures::enableWebVR(true); |
| 198 | 198 |
| 199 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) | 199 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) |
| 200 WebRuntimeFeatures::enablePresentationAPI(false); | 200 WebRuntimeFeatures::enablePresentationAPI(false); |
| 201 | 201 |
| 202 const std::string webfonts_intervention_v2_group_name = | 202 const std::string webfonts_intervention_v2_group_name = |
| 203 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); | 203 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); |
| 204 const std::string webfonts_intervention_v2_about_flag = | 204 const std::string webfonts_intervention_v2_about_flag = |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 331 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 332 std::vector<std::string> disabled_features = base::SplitString( | 332 std::vector<std::string> disabled_features = base::SplitString( |
| 333 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 333 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 334 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 334 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 335 for (const std::string& feature : disabled_features) | 335 for (const std::string& feature : disabled_features) |
| 336 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 336 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 | 339 |
| 340 } // namespace content | 340 } // namespace content |
| OLD | NEW |