| Index: content/browser/service_worker/service_worker_handle.cc
|
| diff --git a/content/browser/service_worker/service_worker_handle.cc b/content/browser/service_worker/service_worker_handle.cc
|
| index b52887a0cb7a16ff2c08abbf6991c98651b0dac7..69d6c48e93c610c18d19aa3101b26dfd50d6152b 100644
|
| --- a/content/browser/service_worker/service_worker_handle.cc
|
| +++ b/content/browser/service_worker/service_worker_handle.cc
|
| @@ -43,25 +43,27 @@ scoped_ptr<ServiceWorkerHandle> ServiceWorkerHandle::Create(
|
| base::WeakPtr<ServiceWorkerContextCore> context,
|
| IPC::Sender* sender,
|
| int thread_id,
|
| + int provider_id,
|
| ServiceWorkerVersion* version) {
|
| if (!context || !version)
|
| return scoped_ptr<ServiceWorkerHandle>();
|
| ServiceWorkerRegistration* registration =
|
| context->GetLiveRegistration(version->registration_id());
|
| - return make_scoped_ptr(
|
| - new ServiceWorkerHandle(context, sender, thread_id,
|
| - registration, version));
|
| + return make_scoped_ptr(new ServiceWorkerHandle(
|
| + context, sender, thread_id, provider_id, registration, version));
|
| }
|
|
|
| ServiceWorkerHandle::ServiceWorkerHandle(
|
| base::WeakPtr<ServiceWorkerContextCore> context,
|
| IPC::Sender* sender,
|
| int thread_id,
|
| + int provider_id,
|
| ServiceWorkerRegistration* registration,
|
| ServiceWorkerVersion* version)
|
| : context_(context),
|
| sender_(sender),
|
| thread_id_(thread_id),
|
| + provider_id_(provider_id),
|
| handle_id_(context.get() ? context->GetNewServiceWorkerHandleId() : -1),
|
| ref_count_(1),
|
| registration_(registration),
|
|
|