From 8cd7f22c59aed370fd97f5e5730df45b314b5f87 Mon Sep 17 00:00:00 2001 From: Honghai Zhang Date: Thu, 23 Jun 2016 13:44:34 -0700 Subject: [PATCH] Fix a breakage in chromoting due to an interface change. TBR=pthatcher@webrtc.org Review URL: https://codereview.webrtc.org/2091093002 . Cr-Commit-Position: refs/heads/master@{#13276} --- webrtc/p2p/base/p2ptransportchannel.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h index 96cb2be48c..f6021615f0 100644 --- a/webrtc/p2p/base/p2ptransportchannel.h +++ b/webrtc/p2p/base/p2ptransportchannel.h @@ -118,6 +118,10 @@ class P2PTransportChannel : public TransportChannelImpl, int GetError() override { return error_; } bool GetStats(std::vector* stats) override; + // TODO(honghaiz): Remove this method once the reference of it in + // Chromoting is removed. + const Connection* best_connection() const { return selected_connection_; } + const Connection* selected_connection() const { return selected_connection_; } void set_incoming_only(bool value) { incoming_only_ = value; }