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

Unified Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 2943463002: Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)
Patch Set: rebased Created 3 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
« no previous file with comments | « content/common/service_worker/service_worker_provider.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/service_worker_context_client.cc
diff --git a/content/renderer/service_worker/service_worker_context_client.cc b/content/renderer/service_worker/service_worker_context_client.cc
index d35286ebcc15b3e2c8294167d9738f1d9ea9483f..5dab871f41a39fd352119e93e29f00092a26149f 100644
--- a/content/renderer/service_worker/service_worker_context_client.cc
+++ b/content/renderer/service_worker/service_worker_context_client.cc
@@ -100,6 +100,8 @@ class WebServiceWorkerNetworkProviderImpl
// Service workers are only available in secure contexts, so all requests
// are initiated in a secure context.
extra_data->set_initiated_in_secure_context(true);
+ extra_data->set_url_loader_factory_override(
+ provider_->script_loader_factory());
request.SetExtraData(extra_data.release());
}
« no previous file with comments | « content/common/service_worker/service_worker_provider.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698