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

Issue 1909143002: Use ConnectionErrorObserver, not callbacks, for error handling. (Closed)

Created:
4 years, 8 months ago by Kevin M
Modified:
4 years, 7 months ago
Reviewers:
haibinlu, Wez
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ConnectionErrorObserver, not callbacks, for error handling. The current implementation invokes error observers and a callback for read and write errors. The responsibility for cleanup and object deletion was therefore ambiguous, making the callback and observer clash in certain conditions. This CL discards the callback entirely in favor of exclusive use of the error observer for signaling errors. R=wez@chromium.org CC=khushalsagar@chromium.org BUG=605294 Committed: https://crrev.com/793dac0c76b5f43baea388f71bdb5ff0929be915 Cr-Commit-Position: refs/heads/master@{#396294}

Patch Set 1 #

Total comments: 14

Patch Set 2 : wez feedback #

Total comments: 6

Patch Set 3 : wez feedback #

Patch Set 4 : minor diff fix #

Patch Set 5 : Addressed haibinlu feedback. #

Total comments: 2

Patch Set 6 : wez feedback #

Patch Set 7 : Fixed BUILD.gn #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -9 lines) Patch
M blimp/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M blimp/net/blimp_connection.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -3 lines 0 comments Download
M blimp/net/blimp_connection_unittest.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M blimp/net/blimp_message_output_buffer.cc View 1 2 3 4 5 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
Kevin M
4 years, 8 months ago (2016-04-21 20:40:09 UTC) #1
Wez
https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc File blimp/net/blimp_connection.cc (right): https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc#newcode97 blimp/net/blimp_connection.cc:97: return; This changes the MessageSender to have different semantics ...
4 years, 8 months ago (2016-04-21 22:44:29 UTC) #2
Kevin M
https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc File blimp/net/blimp_connection.cc (right): https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc#newcode97 blimp/net/blimp_connection.cc:97: return; On 2016/04/21 22:44:29, Wez wrote: > This changes ...
4 years, 8 months ago (2016-04-22 22:10:41 UTC) #3
Kevin M
wez=>haibin
4 years, 7 months ago (2016-05-03 21:04:01 UTC) #5
haibinlu
https://codereview.chromium.org/1909143002/diff/20001/blimp/net/blimp_connection.cc File blimp/net/blimp_connection.cc (right): https://codereview.chromium.org/1909143002/diff/20001/blimp/net/blimp_connection.cc#newcode100 blimp/net/blimp_connection.cc:100: base::ResetAndReturn(&pending_process_msg_callback_).Run(result); nit. use net::OK instead to be specific. Also, ...
4 years, 7 months ago (2016-05-03 21:23:05 UTC) #6
Wez
https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc File blimp/net/blimp_connection.cc (right): https://codereview.chromium.org/1909143002/diff/1/blimp/net/blimp_connection.cc#newcode97 blimp/net/blimp_connection.cc:97: return; On 2016/04/22 22:10:41, Kevin M wrote: > On ...
4 years, 7 months ago (2016-05-07 22:13:47 UTC) #8
Wez
Pingy; can we get this finished-up and landed?
4 years, 7 months ago (2016-05-23 23:54:32 UTC) #9
Kevin M
https://codereview.chromium.org/1909143002/diff/20001/blimp/net/blimp_connection.cc File blimp/net/blimp_connection.cc (right): https://codereview.chromium.org/1909143002/diff/20001/blimp/net/blimp_connection.cc#newcode100 blimp/net/blimp_connection.cc:100: base::ResetAndReturn(&pending_process_msg_callback_).Run(result); On 2016/05/03 21:23:05, haibinlu wrote: > nit. use ...
4 years, 7 months ago (2016-05-24 20:47:05 UTC) #10
haibinlu
lgtm
4 years, 7 months ago (2016-05-24 21:09:54 UTC) #11
Wez
LGTM Presumably things go horrible wrong if multiple Observers try to DropConnection()? https://codereview.chromium.org/1909143002/diff/80001/blimp/net/blimp_connection_unittest.cc File blimp/net/blimp_connection_unittest.cc ...
4 years, 7 months ago (2016-05-25 03:28:35 UTC) #12
Kevin M
> Presumably things go horrible wrong if multiple Observers try to DropConnection()? Correct - only ...
4 years, 7 months ago (2016-05-25 20:40:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909143002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909143002/100001
4 years, 7 months ago (2016-05-25 21:09:45 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/11480) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-25 21:12:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909143002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909143002/120001
4 years, 7 months ago (2016-05-25 23:41:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/143443) ios-device on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-25 23:45:39 UTC) #23
Kevin M
4 years, 7 months ago (2016-05-26 00:41:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909143002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909143002/140001
4 years, 7 months ago (2016-05-26 19:53:11 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-26 22:03:20 UTC) #28
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 22:05:02 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/793dac0c76b5f43baea388f71bdb5ff0929be915
Cr-Commit-Position: refs/heads/master@{#396294}

Powered by Google App Engine
This is Rietveld 408576698