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

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

Issue 717263003: Use uint16 for port numbers, extensions/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review Created 6 years, 1 month 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 | « no previous file | extensions/browser/api/socket/socket.h » ('j') | extensions/browser/api/socket/socket_api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/cast_channel_api.cc
diff --git a/extensions/browser/api/cast_channel/cast_channel_api.cc b/extensions/browser/api/cast_channel/cast_channel_api.cc
index 08134ffb97d81445e3c59fda228dd589cf99169b..6c1e022a94029481c65168dcfbcd8e082d8ebc90 100644
--- a/extensions/browser/api/cast_channel/cast_channel_api.cc
+++ b/extensions/browser/api/cast_channel/cast_channel_api.cc
@@ -304,7 +304,8 @@ net::IPEndPoint* CastChannelOpenFunction::ParseConnectInfo(
const ConnectInfo& connect_info) {
net::IPAddressNumber ip_address;
CHECK(net::ParseIPLiteralToNumber(connect_info.ip_address, &ip_address));
- return new net::IPEndPoint(ip_address, connect_info.port);
+ return new net::IPEndPoint(ip_address,
+ static_cast<uint16>(connect_info.port));
Peter Kasting 2014/11/12 23:54:26 This is guaranteed to be safe due to having previo
}
bool CastChannelOpenFunction::PrePrepare() {
« no previous file with comments | « no previous file | extensions/browser/api/socket/socket.h » ('j') | extensions/browser/api/socket/socket_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698