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

Unified Diff: Source/modules/push_messaging/PushError.h

Issue 247263010: ServiceWorker: Wait for registration promise to resolve before changing states. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yhirano comments 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/modules/push_messaging/PushError.h
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/push_messaging/PushError.h
index cc80bff6ec0a0ce5f2b3cb52224cae89d9334811..0decd425a8936a031cba133e96a2b1e8a13a3ee5 100644
--- a/Source/modules/push_messaging/PushError.h
+++ b/Source/modules/push_messaging/PushError.h
@@ -12,14 +12,14 @@
namespace WebCore {
-class NewScriptState;
+class ScriptPromiseResolverWithContext;
class PushError {
WTF_MAKE_NONCOPYABLE(PushError);
public:
// For CallbackPromiseAdapter.
typedef blink::WebPushError WebType;
- static PassRefPtrWillBeRawPtr<DOMError> from(NewScriptState*, WebType* webErrorRaw)
+ static PassRefPtrWillBeRawPtr<DOMError> from(ScriptPromiseResolverWithContext*, WebType* webErrorRaw)
{
OwnPtr<WebType> webError = adoptPtr(webErrorRaw);
RefPtrWillBeRawPtr<DOMError> error = DOMError::create(errorString(webError->errorType), webError->message);

Powered by Google App Engine
This is Rietveld 408576698