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

Issue 2729133004: Mojo C++ bindings: keep connection error handler on the stack while running it. (Closed)

Created:
3 years, 9 months ago by yzshen1
Modified:
3 years, 9 months ago
Reviewers:
blundell
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: keep connection error handler on the stack while running it. Otherwise, if the error handler owns the interface endpoint, resetting the interface endpoint in the error handler will destroy the error handler and the interface endpoint it owns, which leads to crash. BUG=697728 Review-Url: https://codereview.chromium.org/2729133004 Cr-Commit-Position: refs/heads/master@{#454618} Committed: https://chromium.googlesource.com/chromium/src/+/477d1f7294ce5a7b13ce399ca4da899b667547a5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -5 lines) Patch
M mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 2 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
yzshen1
Hi, Colin. Would you please take a look? Thanks!
3 years, 9 months ago (2017-03-03 16:55:05 UTC) #4
blundell
lgtm Could you flesh out the CL description with some of the motivation described in ...
3 years, 9 months ago (2017-03-03 17:02:16 UTC) #5
yzshen1
On 2017/03/03 17:02:16, blundell wrote: > lgtm > > Could you flesh out the CL ...
3 years, 9 months ago (2017-03-03 17:27:41 UTC) #7
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/2729133004/1
3 years, 9 months ago (2017-03-03 17:27:56 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 17:53:35 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/477d1f7294ce5a7b13ce399ca4da...

Powered by Google App Engine
This is Rietveld 408576698