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

Unified Diff: Source/modules/presentation/Presentation.cpp

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/presentation/Presentation.cpp
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp
index 940811e62bcfc5e98cc090fd9ae5b4a545bc6540..88868c6f6633eba662fbfcc7a32589a704faa448 100644
--- a/Source/modules/presentation/Presentation.cpp
+++ b/Source/modules/presentation/Presentation.cpp
@@ -52,7 +52,7 @@ PresentationSession* Presentation::session() const
ScriptPromise Presentation::startSession(ScriptState* state, const String& senderId, const String& presentationId)
{
- RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state);
+ RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state);
ScriptPromise promise = resolver->promise();
resolver->reject(DOMException::create(NotSupportedError, "The method is not supported yet."));
return promise;
@@ -60,7 +60,7 @@ ScriptPromise Presentation::startSession(ScriptState* state, const String& sende
ScriptPromise Presentation::joinSession(ScriptState* state, const String& senderId, const String& presentationId)
{
- RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state);
+ RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(state);
ScriptPromise promise = resolver->promise();
resolver->reject(DOMException::create(NotSupportedError, "The method is not supported yet."));
return promise;

Powered by Google App Engine
This is Rietveld 408576698