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 "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 WebRuntimeFeatures::enablePagePopup(false); | 36 WebRuntimeFeatures::enablePagePopup(false); |
37 // datalist on Android is not enabled | 37 // datalist on Android is not enabled |
38 WebRuntimeFeatures::enableDataListElement(false); | 38 WebRuntimeFeatures::enableDataListElement(false); |
39 #endif | 39 #endif |
40 } | 40 } |
41 | 41 |
42 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( | 42 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( |
43 const CommandLine& command_line) { | 43 const CommandLine& command_line) { |
44 WebRuntimeFeatures::enableStableFeatures(true); | 44 WebRuntimeFeatures::enableStableFeatures(true); |
45 | 45 |
46 if (command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)) | 46 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)) |
47 WebRuntimeFeatures::enableExperimentalFeatures(true); | 47 WebRuntimeFeatures::enableExperimentalFeatures(true); |
48 | 48 |
49 SetRuntimeFeatureDefaultsForPlatform(); | 49 SetRuntimeFeatureDefaultsForPlatform(); |
50 | 50 |
51 if (command_line.HasSwitch(switches::kDisableDatabases)) | 51 if (command_line.HasSwitch(switches::kDisableDatabases)) |
52 WebRuntimeFeatures::enableDatabase(false); | 52 WebRuntimeFeatures::enableDatabase(false); |
53 | 53 |
54 if (command_line.HasSwitch(switches::kDisableApplicationCache)) | 54 if (command_line.HasSwitch(switches::kDisableApplicationCache)) |
55 WebRuntimeFeatures::enableApplicationCache(false); | 55 WebRuntimeFeatures::enableApplicationCache(false); |
56 | 56 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 118 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
119 | 119 |
120 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) | 120 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) |
121 WebRuntimeFeatures::enableSpeechSynthesis(true); | 121 WebRuntimeFeatures::enableSpeechSynthesis(true); |
122 | 122 |
123 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) | 123 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) |
124 WebRuntimeFeatures::enableWebGLDraftExtensions(true); | 124 WebRuntimeFeatures::enableWebGLDraftExtensions(true); |
125 } | 125 } |
126 | 126 |
127 } // namespace content | 127 } // namespace content |
OLD | NEW |