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

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

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Addressed comments + rebase Created 4 years, 1 month 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_fetch_dispatcher.cc
diff --git a/content/browser/service_worker/service_worker_fetch_dispatcher.cc b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
index f26bb19ff3ed0398fe4fe9c6758ba319ac276d02..380153baae8ed851823c54d6e718b40569840716 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.cc
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
@@ -319,6 +319,7 @@ void ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(
ResourceRequest request;
request.method = original_request->method();
request.url = original_request->url();
+ request.request_initiator = original_request->initiator();
request.referrer = GURL(original_request->referrer());
request.referrer_policy = original_info->GetReferrerPolicy();
request.visibility_state = original_info->GetVisibilityState();

Powered by Google App Engine
This is Rietveld 408576698