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

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

Issue 2917643002: PlzNavigate: Fix ServiceWorkerHandler not finding WebContents. (Closed)
Patch Set: Shorter comment. Created 3 years, 7 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_context_watcher.cc
diff --git a/content/browser/service_worker/service_worker_context_watcher.cc b/content/browser/service_worker/service_worker_context_watcher.cc
index 3dd810aef245f410e03e2b90b0e3649a21755d01..98d4fc248e8536d31964cfc5184e7ca2203506f3 100644
--- a/content/browser/service_worker/service_worker_context_watcher.cc
+++ b/content/browser/service_worker/service_worker_context_watcher.cc
@@ -276,13 +276,14 @@ void ServiceWorkerContextWatcher::OnControlleeAdded(
const std::string& uuid,
int process_id,
int route_id,
+ const base::Callback<WebContents*(void)>& web_contents_getter,
ServiceWorkerProviderType type) {
auto it = version_info_map_.find(version_id);
if (it == version_info_map_.end())
return;
ServiceWorkerVersionInfo* version = it->second.get();
- version->clients[uuid] =
- ServiceWorkerVersionInfo::ClientInfo(process_id, route_id, type);
+ version->clients[uuid] = ServiceWorkerVersionInfo::ClientInfo(
+ process_id, route_id, web_contents_getter, type);
SendVersionInfo(*version);
}
« no previous file with comments | « content/browser/service_worker/service_worker_context_watcher.h ('k') | content/browser/service_worker/service_worker_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698