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

Unified Diff: webrtc/examples/peerconnection/client/conductor.cc

Issue 1520963002: Removing webrtc::PortAllocatorFactoryInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trying to fix presubmit warning Created 5 years 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
« no previous file with comments | « webrtc/base/network_unittest.cc ('k') | webrtc/p2p/base/portallocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/peerconnection/client/conductor.cc
diff --git a/webrtc/examples/peerconnection/client/conductor.cc b/webrtc/examples/peerconnection/client/conductor.cc
index c675026bc741c1161f12a81e3ec2460cefbafc08..883f44a77bc17ab04e38c5457a6f47d564a8d898 100644
--- a/webrtc/examples/peerconnection/client/conductor.cc
+++ b/webrtc/examples/peerconnection/client/conductor.cc
@@ -113,10 +113,10 @@ bool Conductor::CreatePeerConnection(bool dtls) {
ASSERT(peer_connection_factory_.get() != NULL);
ASSERT(peer_connection_.get() == NULL);
- webrtc::PeerConnectionInterface::IceServers servers;
+ webrtc::PeerConnectionInterface::RTCConfiguration config;
webrtc::PeerConnectionInterface::IceServer server;
server.uri = GetPeerConnectionString();
- servers.push_back(server);
+ config.servers.push_back(server);
webrtc::FakeConstraints constraints;
if (dtls) {
@@ -127,12 +127,8 @@ bool Conductor::CreatePeerConnection(bool dtls) {
"false");
}
- peer_connection_ =
- peer_connection_factory_->CreatePeerConnection(servers,
- &constraints,
- NULL,
- NULL,
- this);
+ peer_connection_ = peer_connection_factory_->CreatePeerConnection(
+ config, &constraints, NULL, NULL, this);
return peer_connection_.get() != NULL;
}
« no previous file with comments | « webrtc/base/network_unittest.cc ('k') | webrtc/p2p/base/portallocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698