Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1103)

Side by Side Diff: content/child/runtime_features.cc

Issue 14940009: Rename the "Experimental WebKit Features" flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698