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

Issue 1531543003: Modify bindings to enforce that an error handler callback is only set after binding to a msg pipe. (Closed)

Created:
5 years ago by Anand Mistry (off Chromium)
Modified:
5 years ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mojo-binding-error-handler
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify Binding<>, StrongBinding<>, and AssociatedBinding<> to enforce that an error handler callback is only set after binding to a message pipe. Also, reset the callback when the binding unbound from the message pipe. This replicates the behaviour of InterfacePtr<>. BUG=569694 Committed: https://crrev.com/f7038757b49a6d7498be0b0a2efee3bb82918a4a Cr-Commit-Position: refs/heads/master@{#365749}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Modify AssociatedBinding #

Patch Set 3 : Add error handler comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M mojo/public/cpp/bindings/associated_binding.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/binding.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.h View 1 4 chunks +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/strong_binding.h View 1 2 7 chunks +11 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (7 generated)
Anand Mistry (off Chromium)
5 years ago (2015-12-16 00:51:48 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531543003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531543003/1
5 years ago (2015-12-16 00:52:50 UTC) #4
yzshen1
Please also make similar changes to AssociatedBinding https://codereview.chromium.org/1531543003/diff/1/mojo/public/cpp/bindings/lib/binding_state.h File mojo/public/cpp/bindings/lib/binding_state.h (right): https://codereview.chromium.org/1531543003/diff/1/mojo/public/cpp/bindings/lib/binding_state.h#newcode179 mojo/public/cpp/bindings/lib/binding_state.h:179: router_ = ...
5 years ago (2015-12-16 00:56:06 UTC) #5
Anand Mistry (off Chromium)
https://codereview.chromium.org/1531543003/diff/1/mojo/public/cpp/bindings/lib/binding_state.h File mojo/public/cpp/bindings/lib/binding_state.h (right): https://codereview.chromium.org/1531543003/diff/1/mojo/public/cpp/bindings/lib/binding_state.h#newcode179 mojo/public/cpp/bindings/lib/binding_state.h:179: router_ = nullptr; On 2015/12/16 00:56:06, yzshen1 wrote: > ...
5 years ago (2015-12-16 01:49:34 UTC) #7
yzshen1
LGTM Please also add a comment in InterfacePtr<> and Binding<>'s header files about threading.
5 years ago (2015-12-17 00:59:06 UTC) #8
Anand Mistry (off Chromium)
On 2015/12/17 00:59:06, yzshen1 (OOO till new year) wrote: > LGTM > > Please also ...
5 years ago (2015-12-17 02:30:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531543003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531543003/40001
5 years ago (2015-12-17 03:37:36 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-17 05:23:50 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-17 05:25:34 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f7038757b49a6d7498be0b0a2efee3bb82918a4a
Cr-Commit-Position: refs/heads/master@{#365749}

Powered by Google App Engine
This is Rietveld 408576698