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

Issue 717263003: Use uint16 for port numbers, extensions/ edition (Closed)

Created:
6 years, 1 month ago by Peter Kasting
Modified:
6 years, 1 month ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, mark a. foltz, rpaquay
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use uint16 for port numbers, extensions/ edition This is a piece of a larger CL, split up to avoid overwhelming reviewers. The entire CL can be viewed at https://codereview.chromium.org/655063002/ . The intent is to get each piece reviewed separately, then finally land the large CL after all parts have been approved. BUG=81439 TEST=none

Patch Set 1 #

Patch Set 2 : Self-review #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -50 lines) Patch
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 1 chunk +2 lines, -1 line 1 comment Download
M extensions/browser/api/socket/socket.h View 4 chunks +11 lines, -10 lines 0 comments Download
M extensions/browser/api/socket/socket.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/socket/socket_api.h View 4 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/socket/socket_api.cc View 5 chunks +14 lines, -5 lines 2 comments Download
M extensions/browser/api/socket/tcp_socket.h View 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/browser/api/socket/tcp_socket.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/socket/tls_socket.h View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/api/socket/tls_socket.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/api/socket/udp_socket.h View 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/browser/api/socket/udp_socket.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/socket_permission.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/socket_permission_entry.cc View 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
Peter Kasting
This is not an independent CL; please see the description for a link to the ...
6 years, 1 month ago (2014-11-12 23:54:26 UTC) #2
Jeffrey Yasskin
6 years, 1 month ago (2014-11-17 07:00:34 UTC) #3
lgtm, but +relevant people for the APIs just in case.

https://codereview.chromium.org/717263003/diff/20001/extensions/browser/api/s...
File extensions/browser/api/socket/socket_api.cc (right):

https://codereview.chromium.org/717263003/diff/20001/extensions/browser/api/s...
extensions/browser/api/socket/socket_api.cc:197: args_->GetInteger(2, &port) &&
port >= 0 && port <= 65535);
On 2014/11/12 23:54:26, Peter Kasting wrote:
> Maybe we should have had these checks already?

Yes.

Powered by Google App Engine
This is Rietveld 408576698