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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.cc

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nhiroki's comment Created 5 years, 6 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/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index d80cd145383564fe60cf3592cacea310c20fa7b6..1078ba1969ca71080b427ca4a32cf60023ad1957 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -639,7 +639,7 @@ void ServiceWorkerDispatcherHost::OnPostMessageToWorker(
void ServiceWorkerDispatcherHost::OnProviderCreated(
int provider_id,
- int render_frame_id,
+ int route_id,
ServiceWorkerProviderType provider_type) {
// TODO(pkasting): Remove ScopedTracker below once crbug.com/477117 is fixed.
tracked_objects::ScopedTracker tracking_profile(
@@ -655,11 +655,8 @@ void ServiceWorkerDispatcherHost::OnProviderCreated(
return;
}
scoped_ptr<ServiceWorkerProviderHost> provider_host(
- new ServiceWorkerProviderHost(render_process_id_,
- render_frame_id,
- provider_id,
- provider_type,
- GetContext()->AsWeakPtr(),
+ new ServiceWorkerProviderHost(render_process_id_, route_id, provider_id,
+ provider_type, GetContext()->AsWeakPtr(),
this));
GetContext()->AddProviderHost(provider_host.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698