summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorcrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 20:05:03 +0000
committercrogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 20:05:03 +0000
commit8df5119e7f38e089337ffc1688f1bcc91c0610de (patch)
treef0a1066864847b926b60502d8a6b8b4bdfcb82d6 /chrome/renderer
parent970b2fdbfb3ae8fd98ff9b2a15003269d1dec5db (diff)
downloadchromium_src-8df5119e7f38e089337ffc1688f1bcc91c0610de.zip
chromium_src-8df5119e7f38e089337ffc1688f1bcc91c0610de.tar.gz
chromium_src-8df5119e7f38e089337ffc1688f1bcc91c0610de.tar.bz2
Re-land http://codereview.chromium.org/6339004 which was reverted
BUG=none TEST=none TBR=rniwa git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 92110a5..cb78d4f 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -937,6 +937,11 @@ void RenderThread::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableGeolocation(
!command_line.HasSwitch(switches::kDisableGeolocation));
+#ifdef HAS_WEBAUDIO_RUNTIMEFEATURES
+ WebRuntimeFeatures::enableWebAudio(
+ command_line.HasSwitch(switches::kEnableWebAudio));
+#endif
+
WebRuntimeFeatures::enableWebGL(
!command_line.HasSwitch(switches::kDisable3DAPIs) &&
!command_line.HasSwitch(switches::kDisableExperimentalWebGL));