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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2684933011: M57: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: 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/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 06ac3eb1a96939133b87e84768a533cea852cabc..b4aa478c989903af5535c4ab0f74b8b7d6774635 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1087,6 +1087,8 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(),
[](const std::string& h) { return blink::WebString::fromLatin1(h); });
response->setCorsExposedHeaderNames(cors_exposed_header_names);
+ response->setDidServiceWorkerNavigationPreload(
+ info.did_service_worker_navigation_preload);
response->setEncodedDataLength(info.encoded_data_length);
SetSecurityStyleAndDetails(url, info, response, report_security_info);
« no previous file with comments | « content/browser/service_worker/service_worker_url_request_job.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698