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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 1516163002: Reland of Removing references to webrtc::PortAllocatorFactoryInterface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « remoting/host/cast_extension_session.cc ('k') | remoting/protocol/chromium_port_allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 6aa39d4a68bc0409a4dc8536d0463049c8ef2c12..124c76818cb311c4e35f77c56651b6057df0526c 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -1501,8 +1501,8 @@ void HostProcess::StartHost() {
#if !defined(NDEBUG)
network_settings.flags = protocol::NetworkSettings::NAT_TRAVERSAL_OUTGOING;
- rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface>
- port_allocator_factory = protocol::ChromiumPortAllocatorFactory::Create(
+ scoped_ptr<protocol::PortAllocatorFactory> port_allocator_factory =
+ protocol::ChromiumPortAllocatorFactory::Create(
network_settings, context_->url_request_context_getter());
jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
@@ -1514,7 +1514,8 @@ void HostProcess::StartHost() {
scoped_ptr<protocol::TransportFactory> transport_factory(
new protocol::WebrtcTransportFactory(
jingle_glue::JingleThreadWrapper::current(), signal_strategy_.get(),
- port_allocator_factory, protocol::TransportRole::SERVER));
+ std::move(port_allocator_factory),
+ protocol::TransportRole::SERVER));
session_manager.reset(
new protocol::JingleSessionManager(transport_factory.Pass()));
« no previous file with comments | « remoting/host/cast_extension_session.cc ('k') | remoting/protocol/chromium_port_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698