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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerError.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/serviceworkers/ServiceWorkerError.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerError.h b/Source/modules/serviceworkers/ServiceWorkerError.h
index 7f38f868e784613c7c802023bc7d4e3b0e3f794d..66ee2093bcbe4de60ad1e90ccbe0040b6a589542 100644
--- a/Source/modules/serviceworkers/ServiceWorkerError.h
+++ b/Source/modules/serviceworkers/ServiceWorkerError.h
@@ -38,13 +38,13 @@
namespace WebCore {
-class NewScriptState;
+class ScriptPromiseResolverWithContext;
class ServiceWorkerError {
public:
// For CallbackPromiseAdapter
typedef blink::WebServiceWorkerError 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