Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1355)

Unified Diff: content/child/service_worker/service_worker_provider_context.cc

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: ready to review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b0c0e9dbec0b9b1627f541114b0d8332deb683b1..bdb318db1bd3b94a1a370277ec1009e7a78cbaae 100644
--- a/content/child/service_worker/service_worker_provider_context.cc
+++ b/content/child/service_worker/service_worker_provider_context.cc
@@ -187,9 +187,11 @@ void ServiceWorkerProviderContext::OnDisassociateRegistration() {
}
void ServiceWorkerProviderContext::OnSetControllerServiceWorker(
- std::unique_ptr<ServiceWorkerHandleReference> controller) {
+ std::unique_ptr<ServiceWorkerHandleReference> controller,
+ const std::set<uint32_t>& used_features) {
DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
delegate_->SetController(std::move(controller));
+ used_features_ = used_features;
}
void ServiceWorkerProviderContext::GetAssociatedRegistration(

Powered by Google App Engine
This is Rietveld 408576698