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

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

Issue 2659043002: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: fix rebase Created 3 years, 11 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..fade91a65ee3deab849d319cddee586be136c62e 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -504,6 +504,10 @@ void DocumentLoader::responseReceived(
DCHECK(!m_frame->page()->suspended());
+ if (response.didServiceWorkerNavigationPreload()) {
+ UseCounter::count(m_frame->document(),
tkent 2017/02/03 00:55:19 nit: You can use UseCounter::count(m_frame, ...).
falken 2017/02/03 01:07:07 Done.
+ 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