Index: content/renderer/render_view.cc |
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc |
index 05896d000e5941fc95f8d3b6f73e0c42c67b16a1..09f336c00c90d521ed2d431a7785e5c242be6678 100644 |
--- a/content/renderer/render_view.cc |
+++ b/content/renderer/render_view.cc |
@@ -425,8 +425,10 @@ RenderView::RenderView(RenderThreadBase* render_thread, |
audio_message_filter_ = new AudioMessageFilter(routing_id_); |
render_thread_->AddFilter(audio_message_filter_); |
+#if defined(ENABLE_P2P_APIS) |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableP2PApi)) |
p2p_socket_dispatcher_ = new P2PSocketDispatcher(this); |
+#endif |
content::GetContentClient()->renderer()->RenderViewCreated(this); |
} |