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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp

Issue 2564363002: ServiceWorker: Replace RegistrationCallback and GetRegistrationsCallback with CallbackPromiseAdapter (Closed)
Patch Set: base::MakeUnique Created 4 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
index 93e1fdadf56423d2f1dba3a866b6b95be4bb49c1..f197f17fed8a26045f6ca6381ebc96dd996cd29c 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -137,6 +137,9 @@ v8::Local<v8::Value> ServiceWorkerErrorForUpdate::take(
// a TypeError.
return V8ThrowException::createTypeError(
scriptState->isolate(), getExceptionParams(webError).message);
+ case WebServiceWorkerError::ErrorTypeType:
+ return V8ThrowException::createTypeError(scriptState->isolate(),
+ webError.message);
default:
return toV8(ServiceWorkerError::take(resolver, webError),
scriptState->context()->Global(), scriptState->isolate());

Powered by Google App Engine
This is Rietveld 408576698