Index: content/shell/renderer/shell_content_renderer_client.cc |
diff --git a/content/shell/renderer/shell_content_renderer_client.cc b/content/shell/renderer/shell_content_renderer_client.cc |
index e7046ba7547c05fe1fb27c20e068eaab767c390c..80984bce357cc4472c11c22d72e6ab1b849592d5 100644 |
--- a/content/shell/renderer/shell_content_renderer_client.cc |
+++ b/content/shell/renderer/shell_content_renderer_client.cc |
@@ -147,6 +147,8 @@ ShellContentRendererClient::OverrideCreateMIDIAccessor( |
WebAudioDevice* |
ShellContentRendererClient::OverrideCreateAudioDevice( |
double sample_rate) { |
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) |
+ return NULL; |
WebTestInterfaces* interfaces = |
ShellRenderProcessObserver::GetInstance()->test_interfaces(); |
return interfaces->createAudioDevice(sample_rate); |