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

Issue 873573005: Oilpan: merge MIDIAccessInitializer's prefinalizers. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: merge MIDIAccessInitializer's prefinalizers. As the prefinalizer handling does not support having multiple prefinalizers per object, combine the MIDIAccessInitializer + LifecycleObserver prefinalizers methods into one, and arrange for it to be the prefinalizer for MIDIAccessInitializer. In the event this manual prefinalizer re-combination turns out to be a common pattern and workaround, we will revisit the restriction of allowing only one prefinalizer registration per object. R=haraken,kouhei BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189103

Patch Set 1 #

Total comments: 6

Patch Set 2 : add cast to expected type + fixme #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M Source/modules/webmidi/MIDIAccessInitializer.cpp View 1 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
sof
Please take a look.
5 years, 10 months ago (2015-01-28 09:50:10 UTC) #2
haraken
LGTM, thanks for the fix. https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode27 Source/modules/webmidi/MIDIAccessInitializer.cpp:27: // support multiple prefinalizers ...
5 years, 10 months ago (2015-01-28 09:53:11 UTC) #4
sof
https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode27 Source/modules/webmidi/MIDIAccessInitializer.cpp:27: // support multiple prefinalizers for an object. On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 09:56:42 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode28 Source/modules/webmidi/MIDIAccessInitializer.cpp:28: ThreadState::current()->unregisterPreFinalizer(*this); How about ThreadState::current()->unregisterPreFinalizer(static_cast<LifecycleObserver&>(*this)); (void*)(LifecycleObserver*)this may be != (void*)this
5 years, 10 months ago (2015-01-28 09:58:04 UTC) #7
haraken
https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode27 Source/modules/webmidi/MIDIAccessInitializer.cpp:27: // support multiple prefinalizers for an object. On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 10:01:37 UTC) #8
sof
On 2015/01/28 09:58:04, kouhei wrote: > https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp > File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): > > https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode28 > ...
5 years, 10 months ago (2015-01-28 10:04:07 UTC) #9
haraken
On 2015/01/28 10:04:07, sof wrote: > On 2015/01/28 09:58:04, kouhei wrote: > > > https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp ...
5 years, 10 months ago (2015-01-28 10:05:15 UTC) #10
sof
On 2015/01/28 10:05:15, haraken wrote: > On 2015/01/28 10:04:07, sof wrote: > > On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 10:13:29 UTC) #11
sof
Thanks for the reviews. https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/873573005/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode27 Source/modules/webmidi/MIDIAccessInitializer.cpp:27: // support multiple prefinalizers for ...
5 years, 10 months ago (2015-01-28 10:56:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873573005/20001
5 years, 10 months ago (2015-01-28 11:05:03 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 12:09:51 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189103

Powered by Google App Engine
This is Rietveld 408576698