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

Issue 15989003: Support delegate deleting itself from OnError (Closed)

Created:
7 years, 7 months ago by Adam Rice
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Support delegate deleting itself from OnError Modify SocketStream::Finish so that it works correctly if the delegate calls DetachDelegate() and then deletes itself from within the OnError() callback. Test the delegate deleting itself in OnError(). SocketStream::Delegate is permitted to call SocketStream::DetachDelegate() and then delete itself from within the OnError method. Ensure this works correctly. BUG= TEST=net_unittests layout tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202414

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fixes from tyoshino review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -7 lines) Patch
M net/socket_stream/socket_stream.cc View 1 2 chunks +10 lines, -7 lines 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 1 2 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Adam Rice
7 years, 7 months ago (2013-05-24 10:12:34 UTC) #1
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc#newcode296 net/socket_stream/socket_stream.cc:296: return; what is this change for? https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream_unittest.cc File net/socket_stream/socket_stream_unittest.cc ...
7 years, 7 months ago (2013-05-27 05:55:36 UTC) #2
Adam Rice
https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc#newcode296 net/socket_stream/socket_stream.cc:296: return; On 2013/05/27 05:55:36, tyoshino wrote: > what is ...
7 years, 7 months ago (2013-05-27 07:16:33 UTC) #3
tyoshino (SeeGerritForStatus)
LGTM https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream.cc#newcode296 net/socket_stream/socket_stream.cc:296: return; I see. Thanks https://codereview.chromium.org/15989003/diff/1/net/socket_stream/socket_stream_unittest.cc File net/socket_stream/socket_stream_unittest.cc (right): ...
7 years, 7 months ago (2013-05-27 08:09:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/15989003/6001
7 years, 7 months ago (2013-05-27 08:09:38 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5107
7 years, 7 months ago (2013-05-27 09:18:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/15989003/6001
7 years, 7 months ago (2013-05-27 09:50:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/15989003/6001
7 years, 7 months ago (2013-05-27 10:22:05 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 13:24:35 UTC) #9
Message was sent while issue was closed.
Change committed as 202414

Powered by Google App Engine
This is Rietveld 408576698