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

Unified Diff: Source/modules/audio_output_devices/SetSinkIdCallbacks.h

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webusb ScriptPromiseResolver usage Created 5 years, 4 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/audio_output_devices/SetSinkIdCallbacks.h
diff --git a/Source/modules/audio_output_devices/SetSinkIdCallbacks.h b/Source/modules/audio_output_devices/SetSinkIdCallbacks.h
index 0bcb6196bc685c3cc14de10b62f6ea91c7f0e5d8..0a3572a4186d00716d81ca87b15ad7fc9abf7ac0 100644
--- a/Source/modules/audio_output_devices/SetSinkIdCallbacks.h
+++ b/Source/modules/audio_output_devices/SetSinkIdCallbacks.h
@@ -9,7 +9,6 @@
#include "platform/heap/Handle.h"
#include "public/platform/WebCallbacks.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
namespace blink {
@@ -21,14 +20,14 @@ struct WebSetSinkIdError;
class SetSinkIdCallbacks final : public WebCallbacks<void, WebSetSinkIdError*> {
WTF_MAKE_NONCOPYABLE(SetSinkIdCallbacks);
public:
- SetSinkIdCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, HTMLMediaElement&, const String& sinkId);
+ SetSinkIdCallbacks(ScriptPromiseResolver*, HTMLMediaElement&, const String& sinkId);
~SetSinkIdCallbacks() override;
void onSuccess() override;
void onError(WebSetSinkIdError*) override;
private:
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
+ Persistent<ScriptPromiseResolver> m_resolver;
RefPtrWillBePersistent<HTMLMediaElement> m_element;
String m_sinkId;
};

Powered by Google App Engine
This is Rietveld 408576698