| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "content/common/content_switches_internal.h" | 9 #include "content/common/content_switches_internal.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 if (command_line.HasSwitch(switches::kDisableWebAudio)) | 127 if (command_line.HasSwitch(switches::kDisableWebAudio)) |
| 128 WebRuntimeFeatures::enableWebAudio(false); | 128 WebRuntimeFeatures::enableWebAudio(false); |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) | 131 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) |
| 132 WebRuntimeFeatures::enableEncryptedMedia(true); | 132 WebRuntimeFeatures::enableEncryptedMedia(true); |
| 133 | 133 |
| 134 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) | 134 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) |
| 135 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); | 135 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); |
| 136 | 136 |
| 137 if (command_line.HasSwitch(switches::kEnableWebAnimationsSVG)) | |
| 138 WebRuntimeFeatures::enableWebAnimationsSVG(true); | |
| 139 | |
| 140 if (command_line.HasSwitch(switches::kEnableWebMIDI)) | 137 if (command_line.HasSwitch(switches::kEnableWebMIDI)) |
| 141 WebRuntimeFeatures::enableWebMIDI(true); | 138 WebRuntimeFeatures::enableWebMIDI(true); |
| 142 | 139 |
| 143 if (command_line.HasSwitch(switches::kDisableFileSystem)) | 140 if (command_line.HasSwitch(switches::kDisableFileSystem)) |
| 144 WebRuntimeFeatures::enableFileSystem(false); | 141 WebRuntimeFeatures::enableFileSystem(false); |
| 145 | 142 |
| 146 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) | 143 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) |
| 147 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 144 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
| 148 | 145 |
| 149 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) { | 146 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 WebRuntimeFeatures::enableLayerSquashing(true); | 178 WebRuntimeFeatures::enableLayerSquashing(true); |
| 182 | 179 |
| 183 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || | 180 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || |
| 184 command_line.HasSwitch( | 181 command_line.HasSwitch( |
| 185 switches::kEnableExperimentalWebPlatformFeatures)) { | 182 switches::kEnableExperimentalWebPlatformFeatures)) { |
| 186 WebRuntimeFeatures::enableNetworkInformation(true); | 183 WebRuntimeFeatures::enableNetworkInformation(true); |
| 187 } | 184 } |
| 188 } | 185 } |
| 189 | 186 |
| 190 } // namespace content | 187 } // namespace content |
| OLD | NEW |