Chromium Code Reviews| Index: content/browser/renderer_host/media/peer_connection_tracker_host.cc |
| diff --git a/content/browser/renderer_host/media/peer_connection_tracker_host.cc b/content/browser/renderer_host/media/peer_connection_tracker_host.cc |
| index d4a8ac6b66e58097840d7be6acab4f58d63a57d5..f817981c803f75e972ab62fe0652454cd0ecda14 100644 |
| --- a/content/browser/renderer_host/media/peer_connection_tracker_host.cc |
| +++ b/content/browser/renderer_host/media/peer_connection_tracker_host.cc |
| @@ -4,9 +4,9 @@ |
| #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| #include "base/process_util.h" |
| -#include "content/browser/media/webrtc_internals.h" |
| #include "content/common/media/peer_connection_tracker_messages.h" |
| #include "content/public/browser/content_browser_client.h" |
| +#include "content/public/browser/webrtc_internals_interface.h" |
| namespace content { |
| @@ -31,13 +31,17 @@ PeerConnectionTrackerHost::~PeerConnectionTrackerHost() { |
| void PeerConnectionTrackerHost::OnAddPeerConnection( |
| const PeerConnectionInfo& info) { |
| - WebRTCInternals::GetInstance()->AddPeerConnection( |
| - base::GetProcId(peer_handle()), info); |
| + GetContentClient()->browser()->GetWebRTCInternalsInterface() |
| + ->AddPeerConnection(base::GetProcId(peer_handle()), |
|
vrk (LEFT CHROMIUM)
2013/01/15 22:54:13
nit: move the -> to the line before
jiayl
2013/01/15 23:03:31
Done.
|
| + info.lid, |
| + info.url, |
| + info.servers, |
| + info.constraints); |
| } |
| void PeerConnectionTrackerHost::OnRemovePeerConnection(int lid) { |
| - WebRTCInternals::GetInstance()->RemovePeerConnection( |
| - base::GetProcId(peer_handle()), lid); |
| + GetContentClient()->browser()->GetWebRTCInternalsInterface() |
| + ->RemovePeerConnection(base::GetProcId(peer_handle()), lid); |
|
vrk (LEFT CHROMIUM)
2013/01/15 22:54:13
nit: move the -> to the line before
jiayl
2013/01/15 23:03:31
Done.
|
| } |
| } // namespace content |