summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 13:17:33 +0000
committeryhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 13:17:33 +0000
commit3d5c5383b1d6c1a5db3a0d3ed746e5d334877c99 (patch)
tree321deccd7a6a0ff1b4b09905f49b60290a5f176d
parent98dd6a2191e3e8d0b70821063526e9b934031d84 (diff)
downloadchromium_src-3d5c5383b1d6c1a5db3a0d3ed746e5d334877c99.zip
chromium_src-3d5c5383b1d6c1a5db3a0d3ed746e5d334877c99.tar.gz
chromium_src-3d5c5383b1d6c1a5db3a0d3ed746e5d334877c99.tar.bz2
Create a runtime switch for WebSocket impelementation
Set WebRuntimeFeatures::enableExperimentalWebSocket with the renderer command line parameter. BUG=226933 R=jamesr Review URL: https://chromiumcodereview.appspot.com/14351002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195156 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/renderer/render_thread_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index b4f6eab..81613eb 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -781,6 +781,9 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableWebPInAcceptHeader(
command_line.HasSwitch(switches::kEnableWebPInAcceptHeader));
+ WebRuntimeFeatures::enableExperimentalWebSocket(
+ command_line.HasSwitch(switches::kEnableExperimentalWebSocket));
+
FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
devtools_agent_message_filter_ = new DevToolsAgentFilter();