Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index e26b07aa067c142dc375594db1b5e759db8e51b9..531116e0c23463f7e7205e52e2d93d754627e11c 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -599,12 +599,9 @@ RenderViewImpl::RenderViewImpl( |
host_window_ = parent_hwnd; |
-#if defined(ENABLE_P2P_APIS) |
+#if defined(ENABLE_WEBRTC) |
if (!p2p_socket_dispatcher_) |
p2p_socket_dispatcher_ = new content::P2PSocketDispatcher(this); |
-#endif |
- |
-#if defined(ENABLE_WEBRTC) |
if (!media_stream_dispatcher_) |
media_stream_dispatcher_ = new MediaStreamDispatcher(this); |
#endif |
@@ -3436,12 +3433,10 @@ void RenderViewImpl::EnsureMediaStreamImpl() { |
if (!RenderThreadImpl::current()) // Will be NULL during unit tests. |
return; |
-#if defined(ENABLE_P2P_APIS) |
+#if defined(ENABLE_WEBRTC) |
if (!p2p_socket_dispatcher_) |
p2p_socket_dispatcher_ = new content::P2PSocketDispatcher(this); |
-#endif |
-#if defined(ENABLE_WEBRTC) |
if (!media_stream_dispatcher_) |
media_stream_dispatcher_ = new MediaStreamDispatcher(this); |