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

Unified Diff: Source/modules/webmidi/MIDIAccessInitializer.h

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: keepAliveWhilePending() comment Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/webmidi/MIDIAccessInitializer.h
diff --git a/Source/modules/webmidi/MIDIAccessInitializer.h b/Source/modules/webmidi/MIDIAccessInitializer.h
index 9f18ac1ebb14756986a853a88585e72fcea2fcf9..943ad4d0dc652b59f025bc5097c0d0b8965fc96b 100644
--- a/Source/modules/webmidi/MIDIAccessInitializer.h
+++ b/Source/modules/webmidi/MIDIAccessInitializer.h
@@ -40,7 +40,7 @@ public:
static ScriptPromise start(ScriptState* scriptState, const MIDIOptions& options)
{
- RefPtrWillBeRawPtr<MIDIAccessInitializer> resolver = adoptRefWillBeNoop(new MIDIAccessInitializer(scriptState, options));
+ MIDIAccessInitializer* resolver = new MIDIAccessInitializer(scriptState, options);
resolver->keepAliveWhilePending();
resolver->suspendIfNeeded();
return resolver->start();

Powered by Google App Engine
This is Rietveld 408576698