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

Unified Diff: remoting/protocol/webrtc_transport.cc

Issue 2627433003: Remove ScopedVector from remoting/. (Closed)
Patch Set: rev Created 3 years, 11 months 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/protocol/webrtc_transport.h ('k') | remoting/signaling/xmpp_signal_strategy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_transport.cc
diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
index e4ce98ae80f2e66a8afdb6f9fd23eb109544e525..c9c88c4e5a4716067ddbc4cc91bdbdc07e46c639 100644
--- a/remoting/protocol/webrtc_transport.cc
+++ b/remoting/protocol/webrtc_transport.cc
@@ -680,8 +680,8 @@ void WebrtcTransport::AddPendingCandidatesIfPossible() {
if (peer_connection()->signaling_state() ==
webrtc::PeerConnectionInterface::kStable) {
- for (auto* candidate : pending_incoming_candidates_) {
- if (!peer_connection()->AddIceCandidate(candidate)) {
+ for (const auto& candidate : pending_incoming_candidates_) {
+ if (!peer_connection()->AddIceCandidate(candidate.get())) {
LOG(ERROR) << "Failed to add incoming candidate";
Close(INCOMPATIBLE_PROTOCOL);
return;
« no previous file with comments | « remoting/protocol/webrtc_transport.h ('k') | remoting/signaling/xmpp_signal_strategy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698