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

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

Issue 2659043002: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: patch for landing 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: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index fd0186908321f7565e80a6e561e2791268d01a42..613a0e43d29c297520445322580490d01dafa2d4 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -504,6 +504,8 @@ void DocumentLoader::responseReceived(
DCHECK(!m_frame->page()->suspended());
+ if (response.didServiceWorkerNavigationPreload())
+ UseCounter::count(m_frame, UseCounter::ServiceWorkerNavigationPreload);
m_response = response;
if (isArchiveMIMEType(m_response.mimeType()) &&
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/platform/exported/WebURLResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698