| 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 dd0d523b83710e5580cdf55f0dd1a68480c26eac..73f411121423c36724ebfc991cba4709b0dced0b 100644
|
| --- a/content/renderer/service_worker/service_worker_script_context.cc
|
| +++ b/content/renderer/service_worker/service_worker_script_context.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/logging.h"
|
| #include "base/metrics/histogram.h"
|
| #include "content/child/notifications/notification_data_conversions.h"
|
| +#include "content/child/service_worker/web_service_worker_registration_impl.h"
|
| #include "content/child/thread_safe_sender.h"
|
| #include "content/child/webmessageportchannel_impl.h"
|
| #include "content/common/message_port_messages.h"
|
| @@ -115,6 +116,11 @@ void ServiceWorkerScriptContext::OnMessageReceived(
|
| DCHECK(handled);
|
| }
|
|
|
| +void ServiceWorkerScriptContext::SetRegistrationInServiceWorkerGlobalScope(
|
| + scoped_ptr<WebServiceWorkerRegistrationImpl> registration) {
|
| + proxy_->setRegistration(registration.release());
|
| +}
|
| +
|
| void ServiceWorkerScriptContext::DidHandleActivateEvent(
|
| int request_id,
|
| blink::WebServiceWorkerEventResult result) {
|
|
|