Index: content/child/service_worker/service_worker_provider_context.cc |
diff --git a/content/child/service_worker/service_worker_provider_context.cc b/content/child/service_worker/service_worker_provider_context.cc |
index bdb318db1bd3b94a1a370277ec1009e7a78cbaae..82492a0d63751add0cb97ed4882623fb416635a1 100644 |
--- a/content/child/service_worker/service_worker_provider_context.cc |
+++ b/content/child/service_worker/service_worker_provider_context.cc |
@@ -46,9 +46,9 @@ class ServiceWorkerProviderContext::ControlleeDelegate |
void AssociateRegistration( |
std::unique_ptr<ServiceWorkerRegistrationHandleReference> registration, |
- std::unique_ptr<ServiceWorkerHandleReference> installing, |
- std::unique_ptr<ServiceWorkerHandleReference> waiting, |
- std::unique_ptr<ServiceWorkerHandleReference> active) override { |
+ std::unique_ptr<ServiceWorkerHandleReference> /* installing */, |
+ std::unique_ptr<ServiceWorkerHandleReference> /* waiting */, |
+ std::unique_ptr<ServiceWorkerHandleReference> /* active */) override { |
DCHECK(!registration_); |
registration_ = std::move(registration); |
} |
@@ -69,8 +69,8 @@ class ServiceWorkerProviderContext::ControlleeDelegate |
bool HasAssociatedRegistration() override { return !!registration_; } |
void GetAssociatedRegistration( |
- ServiceWorkerRegistrationObjectInfo* info, |
- ServiceWorkerVersionAttributes* attrs) override { |
+ ServiceWorkerRegistrationObjectInfo* /* info */, |
+ ServiceWorkerVersionAttributes* /* attrs */) override { |
NOTREACHED(); |
} |
@@ -111,7 +111,7 @@ class ServiceWorkerProviderContext::ControllerDelegate |
} |
void SetController( |
- std::unique_ptr<ServiceWorkerHandleReference> controller) override { |
+ std::unique_ptr<ServiceWorkerHandleReference> /* controller */) override { |
NOTREACHED(); |
} |
@@ -147,10 +147,12 @@ class ServiceWorkerProviderContext::ControllerDelegate |
ServiceWorkerProviderContext::ServiceWorkerProviderContext( |
int provider_id, |
ServiceWorkerProviderType provider_type, |
+ mojom::ServiceWorkerProviderAssociatedRequest request, |
ThreadSafeSender* thread_safe_sender) |
: provider_id_(provider_id), |
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
- thread_safe_sender_(thread_safe_sender) { |
+ thread_safe_sender_(thread_safe_sender), |
+ binding_(this, std::move(request)) { |
if (provider_type == SERVICE_WORKER_PROVIDER_FOR_CONTROLLER) |
delegate_.reset(new ControllerDelegate); |
else |