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

Issue 15359007: Allow missing socketType in SocketInfo if socket is not connected (Closed)

Created:
7 years, 7 months ago by Bei Zhang
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Allow missing socketType in SocketInfo if socket is not connected BUG=242261 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203036

Patch Set 1 #

Patch Set 2 : Adding test for calling getInfo against closed socket #

Patch Set 3 : Changes as per asargent #

Total comments: 2

Patch Set 4 : Changes as per asargent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -31 lines) Patch
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 1 chunk +31 lines, -29 lines 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/background.js View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Bei Zhang
Hi Antony, Please Review. Thanks! Bei
7 years, 7 months ago (2013-05-24 18:05:39 UTC) #1
asargent_no_longer_on_chrome
The chrome.socket.create method requires a SocketType parameter, so it isn't possible to create a socket ...
7 years, 6 months ago (2013-05-29 16:58:14 UTC) #2
Bei Zhang
I believe SocketInfo is not related to chrome.socket.create method? This change hurts the compatibility least ...
7 years, 6 months ago (2013-05-29 17:04:53 UTC) #3
asargent_no_longer_on_chrome
Actually I think the approach that is most consistent with the rest of the platform's ...
7 years, 6 months ago (2013-05-29 18:00:09 UTC) #4
Bei Zhang
This make much more sense than my change! Fixed according to your comment. Thanks for ...
7 years, 6 months ago (2013-05-29 21:25:00 UTC) #5
asargent_no_longer_on_chrome
https://codereview.chromium.org/15359007/diff/10001/chrome/common/extensions/api/socket.idl File chrome/common/extensions/api/socket.idl (right): https://codereview.chromium.org/15359007/diff/10001/chrome/common/extensions/api/socket.idl#newcode113 chrome/common/extensions/api/socket.idl:113: callback GetInfoCallback = void (optional SocketInfo result); You can ...
7 years, 6 months ago (2013-05-29 21:31:07 UTC) #6
Bei Zhang
https://codereview.chromium.org/15359007/diff/10001/chrome/common/extensions/api/socket.idl File chrome/common/extensions/api/socket.idl (right): https://codereview.chromium.org/15359007/diff/10001/chrome/common/extensions/api/socket.idl#newcode113 chrome/common/extensions/api/socket.idl:113: callback GetInfoCallback = void (optional SocketInfo result); On 2013/05/29 ...
7 years, 6 months ago (2013-05-29 22:14:51 UTC) #7
asargent_no_longer_on_chrome
lgtm
7 years, 6 months ago (2013-05-29 22:34:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ikarienator@chromium.org/15359007/15001
7 years, 6 months ago (2013-05-29 22:35:48 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 03:24:08 UTC) #10
Message was sent while issue was closed.
Change committed as 203036

Powered by Google App Engine
This is Rietveld 408576698