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

Issue 391233002: Add support in mojo to check if a MojoHandle identifies a message pipe. (Closed)

Created:
6 years, 5 months ago by ananta
Modified:
6 years, 5 months ago
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
Project:
chromium
Visibility:
Public.

Description

Add support in mojo to check if a MojoHandle identifies a message pipe. Updated mojo spy to use the newly added function MojoIsMessagePipe to check if the handle coming back from the ReadMessageRaw call is a message pipe. If yes we go ahead and intercept it. Removed the hacks added in the previous patch which assumed that the first handle coming back from the vendor is a message pipe. BUG=360188 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283680

Patch Set 1 #

Patch Set 2 : Use MojoReadMessage to identify a message pipe. #

Total comments: 2

Patch Set 3 : Updated the check for MojoReadMessage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M mojo/spy/spy.cc View 1 2 3 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ananta
6 years, 5 months ago (2014-07-15 21:56:08 UTC) #1
viettrungluu
Not LGTM. This is not an appropriately designed API.
6 years, 5 months ago (2014-07-15 22:09:44 UTC) #2
ananta
On 2014/07/15 22:09:44, viettrungluu wrote: > Not LGTM. This is not an appropriately designed API. ...
6 years, 5 months ago (2014-07-15 22:13:56 UTC) #3
viettrungluu
On 2014/07/15 22:13:56, ananta wrote: > On 2014/07/15 22:09:44, viettrungluu wrote: > > Not LGTM. ...
6 years, 5 months ago (2014-07-15 22:33:13 UTC) #4
darin (slow to review)
What is the reason for avoiding APIs like this. I can imagine some things, but ...
6 years, 5 months ago (2014-07-15 22:41:42 UTC) #5
ananta
On 2014/07/15 22:41:42, darin wrote: > What is the reason for avoiding APIs like this. ...
6 years, 5 months ago (2014-07-15 23:40:02 UTC) #6
viettrungluu
On 2014/07/15 22:41:42, darin wrote: > What is the reason for avoiding APIs like this. ...
6 years, 5 months ago (2014-07-16 02:39:30 UTC) #7
viettrungluu
Please write tests. https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc File mojo/spy/spy.cc (right): https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc#newcode106 mojo/spy/spy.cc:106: MOJO_RESULT_RESOURCE_EXHAUSTED) { I believe it'll return ...
6 years, 5 months ago (2014-07-16 02:40:48 UTC) #8
ananta
https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc File mojo/spy/spy.cc (right): https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc#newcode106 mojo/spy/spy.cc:106: MOJO_RESULT_RESOURCE_EXHAUSTED) { On 2014/07/16 02:40:48, viettrungluu wrote: > I ...
6 years, 5 months ago (2014-07-16 21:06:06 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
6 years, 5 months ago (2014-07-16 23:56:13 UTC) #10
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 5 months ago (2014-07-16 23:56:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/391233002/40001
6 years, 5 months ago (2014-07-16 23:59:42 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-16 23:59:43 UTC) #13
commit-bot: I haz the power
A disapproval has been posted by following reviewers: viettrungluu@chromium.org. Please make sure to get positive ...
6 years, 5 months ago (2014-07-16 23:59:44 UTC) #14
viettrungluu
On 2014/07/16 21:06:06, ananta wrote: > https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc > File mojo/spy/spy.cc (right): > > https://codereview.chromium.org/391233002/diff/20001/mojo/spy/spy.cc#newcode106 > ...
6 years, 5 months ago (2014-07-17 01:11:20 UTC) #15
viettrungluu
The CQ bit was checked by viettrungluu@chromium.org
6 years, 5 months ago (2014-07-17 01:11:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/391233002/40001
6 years, 5 months ago (2014-07-17 01:14:53 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-17 05:52:54 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 07:07:38 UTC) #19
Message was sent while issue was closed.
Change committed as 283680

Powered by Google App Engine
This is Rietveld 408576698