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

Issue 105423003: gin::Wrappable shouldn't inherit from base::RefCounted (Closed)

Created:
7 years ago by abarth-chromium
Modified:
7 years ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

gin::Wrappable shouldn't inherit from base::RefCounted Rather than using reference counting to keep gin::Wrappable objects alive, we use the V8 garbage collector. To retain a reference to a wrappable object on the stack, use a gin::Handle. Currently there is no mechanism for retaining a gin::Wrappable object in the heap, but we'll likely add one in the future. R=aa@chromium.org BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238902

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address aa's comments #

Patch Set 3 : Fix win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -32 lines) Patch
M gin/function_template.h View 1 6 chunks +11 lines, -5 lines 0 comments Download
M gin/function_template.h.pump View 1 2 chunks +2 lines, -1 line 0 comments Download
M gin/gin.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A gin/handle.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
M gin/wrappable.h View 2 chunks +10 lines, -14 lines 0 comments Download
M gin/wrappable.cc View 2 chunks +1 line, -2 lines 0 comments Download
M gin/wrappable_unittest.cc View 1 5 chunks +7 lines, -6 lines 0 comments Download
M mojo/apps/js/bindings/support.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/waiting_callback.h View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/apps/js/bindings/waiting_callback.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
abarth-chromium
https://codereview.chromium.org/105423003/diff/1/gin/function_template.h File gin/function_template.h (right): https://codereview.chromium.org/105423003/diff/1/gin/function_template.h#newcode348 gin/function_template.h:348: isolate, Not sure where this part of the diff ...
7 years ago (2013-12-04 21:33:08 UTC) #1
Aaron Boodman
lgtm https://codereview.chromium.org/105423003/diff/1/gin/function_template.h File gin/function_template.h (right): https://codereview.chromium.org/105423003/diff/1/gin/function_template.h#newcode348 gin/function_template.h:348: isolate, On 2013/12/04 21:33:08, abarth wrote: > Not ...
7 years ago (2013-12-04 22:04:42 UTC) #2
abarth-chromium
https://codereview.chromium.org/105423003/diff/1/gin/handle.h File gin/handle.h (right): https://codereview.chromium.org/105423003/diff/1/gin/handle.h#newcode19 gin/handle.h:19: Handle() : object_(0) {} On 2013/12/04 22:04:42, Aaron Boodman ...
7 years ago (2013-12-04 22:24:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/105423003/20001
7 years ago (2013-12-04 22:29:52 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
7 years ago (2013-12-05 00:06:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/105423003/20001
7 years ago (2013-12-05 03:06:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/105423003/40001
7 years ago (2013-12-05 03:57:06 UTC) #7
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=39578
7 years ago (2013-12-05 04:10:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/105423003/40001
7 years ago (2013-12-05 04:42:07 UTC) #9
abarth-chromium
7 years ago (2013-12-05 05:48:17 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r238902 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698