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

Unified Diff: extensions/browser/api/cast_channel/logger.cc

Issue 1837713002: Migrate extensions/* to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « extensions/browser/api/cast_channel/cast_test_util.cc ('k') | extensions/browser/api/socket/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/logger.cc
diff --git a/extensions/browser/api/cast_channel/logger.cc b/extensions/browser/api/cast_channel/logger.cc
index ba187da8772721b1c3e6cb972e503066d842ade9..0958451c30d736154b370658111e7eb36528465c 100644
--- a/extensions/browser/api/cast_channel/logger.cc
+++ b/extensions/browser/api/cast_channel/logger.cc
@@ -144,8 +144,8 @@ void Logger::LogNewSocketEvent(const CastSocket& cast_socket) {
AggregatedSocketEvent& aggregated_socket_event =
LogSocketEvent(cast_socket.id(), event);
- const net::IPAddressNumber& ip = cast_socket.ip_endpoint().address().bytes();
- aggregated_socket_event.set_endpoint_id(ip.back());
+ const net::IPAddress& ip = cast_socket.ip_endpoint().address();
+ aggregated_socket_event.set_endpoint_id(ip.bytes().back());
eroman 2016/03/29 18:10:51 As far as refactoring goes, this is a correct. Bu
Wez 2016/03/29 20:46:29 Fair point; |cast_socket.ip_endpoint()| is the add
martijnc 2016/03/29 21:00:48 Added.
aggregated_socket_event.set_channel_auth_type(cast_socket.channel_auth() ==
CHANNEL_AUTH_TYPE_SSL
? proto::SSL
« no previous file with comments | « extensions/browser/api/cast_channel/cast_test_util.cc ('k') | extensions/browser/api/socket/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698