| Index: webrtc/p2p/base/p2ptransportchannel.h
|
| diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
|
| index b002c8bb9f3848d2ac9c639a6617818e39ec7961..2afe03e0047b968809bd18eaecdd53930bf8871a 100644
|
| --- a/webrtc/p2p/base/p2ptransportchannel.h
|
| +++ b/webrtc/p2p/base/p2ptransportchannel.h
|
| @@ -189,7 +189,7 @@ class P2PTransportChannel : public TransportChannelImpl,
|
|
|
| // Public for unit tests.
|
| PortAllocatorSession* allocator_session() {
|
| - return allocator_sessions_.back().get();
|
| + return allocator_sessions_.back();
|
| }
|
|
|
| // Public for unit tests.
|
| @@ -227,7 +227,7 @@ class P2PTransportChannel : public TransportChannelImpl,
|
| PortInterface* origin_port);
|
| bool IsPingable(Connection* conn, int64_t now);
|
| void PingConnection(Connection* conn);
|
| - void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session);
|
| + void AddAllocatorSession(PortAllocatorSession* session);
|
| void AddConnection(Connection* connection);
|
|
|
| void OnPortReady(PortAllocatorSession *session, PortInterface* port);
|
| @@ -295,7 +295,7 @@ class P2PTransportChannel : public TransportChannelImpl,
|
| rtc::Thread* worker_thread_;
|
| bool incoming_only_;
|
| int error_;
|
| - std::vector<std::unique_ptr<PortAllocatorSession>> allocator_sessions_;
|
| + std::vector<PortAllocatorSession*> allocator_sessions_;
|
| std::vector<PortInterface *> ports_;
|
|
|
| // |connections_| is a sorted list with the first one always be the
|
|
|