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

Unified Diff: extensions/browser/api/socket/udp_socket.cc

Issue 2133203002: [Extensions] Code cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 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
Index: extensions/browser/api/socket/udp_socket.cc
diff --git a/extensions/browser/api/socket/udp_socket.cc b/extensions/browser/api/socket/udp_socket.cc
index a5b924567425ca8362cb15910c65f449b117cf95..e65957493849ae6d1b85eb500974e712870ecfe6 100644
--- a/extensions/browser/api/socket/udp_socket.cc
+++ b/extensions/browser/api/socket/udp_socket.cc
@@ -46,7 +46,7 @@ void UDPSocket::Connect(const net::AddressList& address,
// UDP API only connects to the first address received from DNS so
// connection may not work even if other addresses are reachable.
- net::IPEndPoint ip_end_point = address.front();
+ const net::IPEndPoint& ip_end_point = address.front();
result = socket_.Open(ip_end_point.GetFamily());
if (result != net::OK)
break;

Powered by Google App Engine
This is Rietveld 408576698