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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 10917167: Refactor the P2PSocketDispatcher to be created on the RenderThread instead of the RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary destruction callback. Removed remaining routing_id. Created 8 years, 3 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/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index 141e1453a275cdfa2aebc7e3fb2f7170b586f7df..974319c88e4014bbef74e6eba97474c69a505a22 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -363,10 +363,6 @@ void MediaStreamImpl::FrameWillClose(WebKit::WebFrame* frame) {
}
}
-void MediaStreamImpl::OnSocketDispatcherDestroyed() {
- CleanupPeerConnectionFactory();
-}
-
void MediaStreamImpl::InitializeWorkerThread(talk_base::Thread** thread,
base::WaitableEvent* event) {
jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
@@ -421,7 +417,6 @@ bool MediaStreamImpl::EnsurePeerConnectionFactory() {
base::Unretained(this),
&event));
event.Wait();
- p2p_socket_dispatcher_->AddDestructionObserver(this);
}
if (!socket_factory_.get()) {
@@ -461,7 +456,6 @@ void MediaStreamImpl::CleanupPeerConnectionFactory() {
} else {
NOTREACHED() << "Worker thread not running.";
}
- p2p_socket_dispatcher_->RemoveDestructionObserver(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698