Index: content/renderer/service_worker/service_worker_script_context.cc |
diff --git a/content/renderer/service_worker/service_worker_script_context.cc b/content/renderer/service_worker/service_worker_script_context.cc |
index 2f731dba2711ad428a8f99ebe67c289ed580ff27..7bd700c11d864897915fe319d65abd055987c982 100644 |
--- a/content/renderer/service_worker/service_worker_script_context.cc |
+++ b/content/renderer/service_worker/service_worker_script_context.cc |
@@ -492,7 +492,9 @@ void ServiceWorkerScriptContext::OnOpenWindowResponse( |
pending_client_callbacks_.Remove(request_id); |
} |
-void ServiceWorkerScriptContext::OnOpenWindowError(int request_id) { |
+void ServiceWorkerScriptContext::OnOpenWindowError( |
+ int request_id, |
+ const std::string& message) { |
TRACE_EVENT0("ServiceWorker", |
"ServiceWorkerScriptContext::OnOpenWindowError"); |
blink::WebServiceWorkerClientCallbacks* callbacks = |
@@ -504,7 +506,7 @@ void ServiceWorkerScriptContext::OnOpenWindowError(int request_id) { |
scoped_ptr<blink::WebServiceWorkerError> error( |
new blink::WebServiceWorkerError( |
blink::WebServiceWorkerError::ErrorTypeUnknown, |
- "Something went wrong while trying to open the window.")); |
+ blink::WebString::fromUTF8(message))); |
callbacks->onError(error.release()); |
pending_client_callbacks_.Remove(request_id); |
} |