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

Issue 214183003: Change mojo JS bindings to expose a handle object, which is Closed when garbage (Closed)

Created:
6 years, 8 months ago by Matt Perry
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Change mojo JS bindings to expose a handle object, which is Closed when garbage collected, rather than a raw integer. BUG=357785 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261479

Patch Set 1 #

Total comments: 7

Patch Set 2 : abarth #

Patch Set 3 : comment #

Patch Set 4 : compile #

Patch Set 5 : webui test #

Patch Set 6 : use auto conversions #

Patch Set 7 : fix WriteMessage to clean up handles #

Patch Set 8 : comment #

Patch Set 9 : rm.extra.gc #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -61 lines) Patch
M content/renderer/web_ui_mojo_context_state.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M gin/gin.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M gin/test/file_runner.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A + gin/test/gc.h View 1 chunk +7 lines, -8 lines 0 comments Download
A + gin/test/gc.cc View 1 chunk +12 lines, -22 lines 0 comments Download
M mojo/apps/js/bindings/connection_unittests.js View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M mojo/apps/js/mojo_runner_delegate.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M mojo/bindings/js/core.cc View 1 2 3 4 5 6 7 8 chunks +61 lines, -25 lines 3 comments Download
M mojo/bindings/js/core_unittests.js View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/bindings/js/handle.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M mojo/bindings/js/handle.cc View 1 2 3 4 5 6 1 chunk +16 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Matt Perry
6 years, 8 months ago (2014-03-28 23:45:13 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/214183003/diff/1/gin/test/gtest.cc File gin/test/gtest.cc (right): https://codereview.chromium.org/214183003/diff/1/gin/test/gtest.cc#newcode56 gin/test/gtest.cc:56: .SetMethod("collectGarbage", v8::V8::LowMemoryNotification) Did you mean to expose this ...
6 years, 8 months ago (2014-03-29 01:56:17 UTC) #2
Matt Perry
https://codereview.chromium.org/214183003/diff/1/gin/test/gtest.cc File gin/test/gtest.cc (right): https://codereview.chromium.org/214183003/diff/1/gin/test/gtest.cc#newcode56 gin/test/gtest.cc:56: .SetMethod("collectGarbage", v8::V8::LowMemoryNotification) On 2014/03/29 01:56:17, abarth wrote: > Did ...
6 years, 8 months ago (2014-03-31 19:34:17 UTC) #3
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-03-31 19:34:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/20001
6 years, 8 months ago (2014-03-31 19:35:05 UTC) #5
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-03-31 20:03:00 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-03-31 20:16:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/40001
6 years, 8 months ago (2014-03-31 20:17:18 UTC) #8
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-03-31 20:26:55 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-03-31 20:45:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/50001
6 years, 8 months ago (2014-03-31 20:45:51 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 21:20:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-03-31 21:20:29 UTC) #13
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-03-31 23:21:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/50001
6 years, 8 months ago (2014-03-31 23:23:19 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:47:45 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-01 00:47:46 UTC) #17
Matt Perry
I had to make some changes to fix a failure in the WebUI.EndToEnd test: - ...
6 years, 8 months ago (2014-04-01 20:16:36 UTC) #18
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-04-01 23:45:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/70001
6 years, 8 months ago (2014-04-01 23:45:43 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 00:17:12 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58934
6 years, 8 months ago (2014-04-02 00:17:13 UTC) #22
Matt Perry
+darin for content/renderer/web_ui_mojo_context_state.cc OWNERS.
6 years, 8 months ago (2014-04-02 00:23:40 UTC) #23
darin (slow to review)
LGTM On Tue, Apr 1, 2014 at 5:23 PM, <mpcomplete@chromium.org> wrote: > +darin for content/renderer/web_ui_mojo_context_state.cc ...
6 years, 8 months ago (2014-04-02 05:32:55 UTC) #24
darin (slow to review)
LGTM
6 years, 8 months ago (2014-04-02 05:33:16 UTC) #25
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-04-02 17:24:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/90001
6 years, 8 months ago (2014-04-02 17:25:32 UTC) #27
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-04-02 22:03:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/130001
6 years, 8 months ago (2014-04-02 22:03:58 UTC) #29
Matt Perry
Two more small changes here: - WriteMessage now invalidates any handles passed across the pipe, ...
6 years, 8 months ago (2014-04-02 22:04:48 UTC) #30
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 8 months ago (2014-04-02 22:13:55 UTC) #31
abarth-chromium
https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.cc File mojo/bindings/js/core.cc (right): https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.cc#newcode77 mojo/bindings/js/core.cc:77: } Is there a better idiom for this in ...
6 years, 8 months ago (2014-04-02 22:57:55 UTC) #32
Matt Perry
https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.cc File mojo/bindings/js/core.cc (right): https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.cc#newcode77 mojo/bindings/js/core.cc:77: } On 2014/04/02 22:57:56, abarth wrote: > Is there ...
6 years, 8 months ago (2014-04-02 23:01:25 UTC) #33
abarth-chromium
On 2014/04/02 23:01:25, Matt Perry wrote: > There's no C++ version that does this for ...
6 years, 8 months ago (2014-04-03 04:55:36 UTC) #34
Sergey Berezin
The CQ bit was unchecked by sergeyberezin@chromium.org
6 years, 8 months ago (2014-04-03 15:46:34 UTC) #35
Sergey Berezin
The CQ bit was checked by sergeyberezin@chromium.org
6 years, 8 months ago (2014-04-03 15:50:32 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/214183003/140001
6 years, 8 months ago (2014-04-03 15:51:23 UTC) #37
commit-bot: I haz the power
Change committed as 261479
6 years, 8 months ago (2014-04-03 18:16:33 UTC) #38
Nico
6 years, 7 months ago (2014-05-05 16:01:43 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.cc
File mojo/bindings/js/core.cc (right):

https://codereview.chromium.org/214183003/diff/140001/mojo/bindings/js/core.c...
mojo/bindings/js/core.cc:76: mojo::Handle _ MOJO_ALLOW_UNUSED =
handles[i]->release();
It's better to write this `ignore_result(handles[i]->release());`.

Powered by Google App Engine
This is Rietveld 408576698