Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1682)

Unified Diff: content/renderer/render_view.cc

Issue 6882021: Wrap the p2p transport API in a compile time flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698