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

Issue 2707543002: [Cast Channel] Fix "leaky" CastChannelOpenFunction. (Closed)

Created:
3 years, 10 months ago by imcheng
Modified:
3 years, 10 months ago
Reviewers:
mark a. foltz
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cast Channel] Fix "leaky" CastChannelOpenFunction. This patch ensures the callback passed into the CastSocket via Connect() is always invoked. This ensures CastChannelOpenFunction always responds before it is destroyed. BUG=693333 Review-Url: https://codereview.chromium.org/2707543002 Cr-Commit-Position: refs/heads/master@{#451973} Committed: https://chromium.googlesource.com/chromium/src/+/ec28bf711c7ebeceed2271b2e7836d45b24704d6

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed Mark's comments + fixed test #

Patch Set 3 : SECURITY_CHECK -> CHECK #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
imcheng
PTAL https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode349 extensions/browser/api/cast_channel/cast_channel_api.cc:349: if (result == cast_channel::CHANNEL_ERROR_NONE) { I changed the ...
3 years, 10 months ago (2017-02-17 22:34:45 UTC) #4
mark a. foltz
LGTM Thanks for cleaning this up. Is the send() function also affected? The CastSocket objects ...
3 years, 10 months ago (2017-02-21 18:30:01 UTC) #7
mark a. foltz
https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode354 extensions/browser/api/cast_channel/cast_channel_api.cc:354: SetResultFromError(new_channel_id_, result); If you want to aggressively destroy sockets ...
3 years, 10 months ago (2017-02-21 18:33:20 UTC) #8
imcheng
On 2017/02/21 18:30:01, mark a. foltz wrote: > LGTM > > Thanks for cleaning this ...
3 years, 10 months ago (2017-02-21 22:15:58 UTC) #9
imcheng
https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode349 extensions/browser/api/cast_channel/cast_channel_api.cc:349: if (result == cast_channel::CHANNEL_ERROR_NONE) { On 2017/02/21 18:30:01, mark ...
3 years, 10 months ago (2017-02-21 22:55:48 UTC) #11
imcheng
https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/2707543002/diff/1/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode351 extensions/browser/api/cast_channel/cast_channel_api.cc:351: CHECK(socket); On 2017/02/21 22:55:47, imcheng wrote: > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 23:34:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2707543002/60001
3 years, 10 months ago (2017-02-22 04:20:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/19504)
3 years, 10 months ago (2017-02-22 07:10:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2707543002/60001
3 years, 10 months ago (2017-02-22 08:34:34 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 10:17:13 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ec28bf711c7ebeceed2271b2e783...

Powered by Google App Engine
This is Rietveld 408576698