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

Unified Diff: Source/bindings/v8/ScriptPromiseResolverWithContext.h

Issue 236713003: [ServiceWorker, PushMessaging] Use ScriptPromiseResolverWithContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/bindings/v8/ScriptPromiseResolverWithContext.h
diff --git a/Source/bindings/v8/ScriptPromiseResolverWithContext.h b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
index f373fa9f3e1347a6ea148a86c18c3db1f09632ff..c8b0a6cc4747b3e1de304ac7955e697b20e6f327 100644
--- a/Source/bindings/v8/ScriptPromiseResolverWithContext.h
+++ b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
@@ -62,6 +62,9 @@ public:
resolveOrRejectImmediately(&m_timer);
}
+ // The returned pointer can be null.
haraken 2014/04/14 12:13:17 (I should have pointed this out in the previous co
yhirano 2014/04/15 01:02:17 Done.
+ NewScriptState* scriptState() { return m_scriptState.get(); }
+
// Note that an empty ScriptPromise will be returned after resolve or
// reject is called.
ScriptPromise promise()

Powered by Google App Engine
This is Rietveld 408576698