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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoader.cpp

Issue 2513183002: Add a use counter for Link rel=serviceworker headers. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/LinkLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
index e29e40a59b3c7e14ed46d354dc0fb1da7e76fd4b..f80e0da7f0ef0f59a2ed7198bb07be442452c28f 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -412,6 +412,9 @@ void LinkLoader::loadLinksFromHeader(
LinkCalledFromHeader, errorOccurred, viewportDescription,
ReferrerPolicyDefault);
}
+ if (relAttribute.isServiceWorker()) {
+ UseCounter::count(*document, UseCounter::LinkHeaderServiceWorker);
+ }
// TODO(yoav): Add more supported headers as needed.
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698