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

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

Issue 22342005: Add --enable-html-imports commandline switch and about-flags entry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 WebRuntimeFeatures::enableFileSystem(false); 125 WebRuntimeFeatures::enableFileSystem(false);
126 126
127 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) 127 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures))
128 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); 128 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true);
129 129
130 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) 130 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis))
131 WebRuntimeFeatures::enableSpeechSynthesis(true); 131 WebRuntimeFeatures::enableSpeechSynthesis(true);
132 132
133 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 133 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
134 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 134 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
135
136 if (command_line.HasSwitch(switches::kEnableHTMLImports))
137 WebRuntimeFeatures::enableHTMLImports(true);
135 } 138 }
136 139
137 } // namespace content 140 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698