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/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (command_line.HasSwitch(switches::kDisableWebAudio)) | 123 if (command_line.HasSwitch(switches::kDisableWebAudio)) |
124 WebRuntimeFeatures::enableWebAudio(false); | 124 WebRuntimeFeatures::enableWebAudio(false); |
125 #endif | 125 #endif |
126 | 126 |
127 if (command_line.HasSwitch(switches::kDisableEncryptedMedia)) | 127 if (command_line.HasSwitch(switches::kDisableEncryptedMedia)) |
128 WebRuntimeFeatures::enableEncryptedMedia(false); | 128 WebRuntimeFeatures::enableEncryptedMedia(false); |
129 | 129 |
130 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) | 130 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) |
131 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); | 131 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); |
132 | 132 |
133 if (command_line.HasSwitch(switches::kDisableFileSystem)) | |
134 WebRuntimeFeatures::enableFileSystem(false); | |
135 | |
136 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) | 133 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) |
137 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 134 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
138 | 135 |
139 if (!command_line.HasSwitch(switches::kDisableAcceleratedJpegDecoding)) | 136 if (!command_line.HasSwitch(switches::kDisableAcceleratedJpegDecoding)) |
140 WebRuntimeFeatures::enableDecodeToYUV(true); | 137 WebRuntimeFeatures::enableDecodeToYUV(true); |
141 | 138 |
142 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) | 139 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) |
143 WebRuntimeFeatures::enableDisplayList2dCanvas(true); | 140 WebRuntimeFeatures::enableDisplayList2dCanvas(true); |
144 | 141 |
145 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) | 142 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', | 217 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', |
221 &disabled_features); | 218 &disabled_features); |
222 for (const std::string& feature : disabled_features) { | 219 for (const std::string& feature : disabled_features) { |
223 WebRuntimeFeatures::enableFeatureFromString( | 220 WebRuntimeFeatures::enableFeatureFromString( |
224 blink::WebString::fromLatin1(feature), false); | 221 blink::WebString::fromLatin1(feature), false); |
225 } | 222 } |
226 } | 223 } |
227 } | 224 } |
228 | 225 |
229 } // namespace content | 226 } // namespace content |
OLD | NEW |