Index: content/renderer/service_worker/embedded_worker_context_client.cc |
diff --git a/content/renderer/service_worker/embedded_worker_context_client.cc b/content/renderer/service_worker/embedded_worker_context_client.cc |
index e99e9edf3e8f4598831c364df374c45980145911..e2c50d84f61d11842599e6e8e9fc97b23440ca6f 100644 |
--- a/content/renderer/service_worker/embedded_worker_context_client.cc |
+++ b/content/renderer/service_worker/embedded_worker_context_client.cc |
@@ -390,12 +390,12 @@ EmbeddedWorkerContextClient::createServiceWorkerProvider() { |
} |
void EmbeddedWorkerContextClient::postMessageToClient( |
- int client_id, |
+ const blink::WebString& uuid, |
const blink::WebString& message, |
blink::WebMessagePortChannelArray* channels) { |
DCHECK(script_context_); |
- script_context_->PostMessageToDocument(client_id, message, |
- make_scoped_ptr(channels)); |
+ script_context_->PostMessageToClient( |
+ uuid, message, make_scoped_ptr(channels)); |
} |
void EmbeddedWorkerContextClient::postMessageToCrossOriginClient( |
@@ -408,9 +408,10 @@ void EmbeddedWorkerContextClient::postMessageToCrossOriginClient( |
} |
void EmbeddedWorkerContextClient::focus( |
- int client_id, blink::WebServiceWorkerClientCallbacks* callback) { |
+ const blink::WebString& uuid, |
+ blink::WebServiceWorkerClientCallbacks* callback) { |
DCHECK(script_context_); |
- script_context_->FocusClient(client_id, callback); |
+ script_context_->FocusClient(uuid, callback); |
} |
void EmbeddedWorkerContextClient::skipWaiting( |