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

Issue 2202893002: Mojo C++ Bindings: Add helpers for bad message reporting (Closed)

Created:
4 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 4 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ Bindings: Add helpers for bad message reporting Adds new C++ API at the bindings layer for convenient reporting of bad messages from within the stack frames that are actually processing those messages. Also adds a new EDK API to set a default process error handler. This is currently only used to support testing but may be generally useful for production code as well. BUG=612500 R=yzshen@chromium.org Committed: https://crrev.com/160577e9f267226ebd2c388e3bf1f8067484bbb2 Cr-Commit-Position: refs/heads/master@{#409612}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -7 lines) Patch
M mojo/edk/embedder/embedder.h View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/system/core.h View 2 chunks +6 lines, -0 lines 0 comments Download
M mojo/edk/system/core.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message.cc View 1 2 3 4 4 chunks +95 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_internal.h View 1 2 3 4 2 chunks +29 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/message.h View 1 2 3 4 4 chunks +55 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/report_bad_message_unittest.cc View 1 2 3 4 1 chunk +189 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/test_bad_messages.mojom View 1 chunk +6 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 34 (22 generated)
Ken Rockot(use gerrit already)
Hi Yuzhu, please take a look!
4 years, 4 months ago (2016-08-02 00:59:35 UTC) #3
yzshen1
On 2016/08/02 00:59:35, Ken Rockot wrote: > Hi Yuzhu, please take a look! Hi, Ken. ...
4 years, 4 months ago (2016-08-02 18:23:48 UTC) #14
yzshen1
On 2016/08/02 18:23:48, yzshen1 wrote: > On 2016/08/02 00:59:35, Ken Rockot wrote: > > Hi ...
4 years, 4 months ago (2016-08-02 18:25:00 UTC) #15
Ken Rockot(use gerrit already)
On 2016/08/02 at 18:23:48, yzshen wrote: > On 2016/08/02 00:59:35, Ken Rockot wrote: > > ...
4 years, 4 months ago (2016-08-02 19:01:11 UTC) #16
yzshen1
On 2016/08/02 19:01:11, Ken Rockot wrote: > On 2016/08/02 at 18:23:48, yzshen wrote: > > ...
4 years, 4 months ago (2016-08-02 19:16:34 UTC) #17
yzshen1
On Tue, Aug 2, 2016 at 12:16 PM, <yzshen@chromium.org> wrote: > On 2016/08/02 19:01:11, Ken ...
4 years, 4 months ago (2016-08-02 19:28:48 UTC) #18
Ken Rockot(use gerrit already)
Please take another look. I've done something less stupid now. There's no need to maintain ...
4 years, 4 months ago (2016-08-02 22:30:54 UTC) #21
yzshen1
LGTM with a few nits. https://codereview.chromium.org/2202893002/diff/60001/mojo/public/cpp/bindings/lib/message.cc File mojo/public/cpp/bindings/lib/message.cc (right): https://codereview.chromium.org/2202893002/diff/60001/mojo/public/cpp/bindings/lib/message.cc#newcode165 mojo/public/cpp/bindings/lib/message.cc:165: internal::MessageDispatchContext::current()->message() Does it make ...
4 years, 4 months ago (2016-08-03 17:10:57 UTC) #24
Ken Rockot(use gerrit already)
Thanks! https://codereview.chromium.org/2202893002/diff/60001/mojo/public/cpp/bindings/lib/message.cc File mojo/public/cpp/bindings/lib/message.cc (right): https://codereview.chromium.org/2202893002/diff/60001/mojo/public/cpp/bindings/lib/message.cc#newcode165 mojo/public/cpp/bindings/lib/message.cc:165: internal::MessageDispatchContext::current()->message() On 2016/08/03 at 17:10:56, yzshen1 wrote: > ...
4 years, 4 months ago (2016-08-03 19:13:26 UTC) #26
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/2202893002/70001
4 years, 4 months ago (2016-08-03 19:17:32 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 4 months ago (2016-08-03 20:25:06 UTC) #32
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 20:27:47 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/160577e9f267226ebd2c388e3bf1f8067484bbb2
Cr-Commit-Position: refs/heads/master@{#409612}

Powered by Google App Engine
This is Rietveld 408576698