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

Issue 2659043002: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)

Created:
3 years, 10 months ago by falken
Modified:
3 years, 10 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken+watch_chromium.org, gavinp+loader_chromium.org, horo+watch_chromium.org, jam, Nate Chapin, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+watch, kinuko+serviceworker, loading-reviews_chromium.org, michaeln, mmenke, nhiroki, Randy Smith (Not in Mondays), serviceworker-reviews, shimazu+serviceworker_chromium.org, tyoshino+watch_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UseCounter for ServiceWorkerNavigationPreload. We have a UMA already (ServiceWorker.NavigationPreload.HeaderSize) which gives the total count, but it's hard to compute the % of page views without a UseCounter. BUG=649558 Review-Url: https://codereview.chromium.org/2659043002 Cr-Commit-Position: refs/heads/master@{#448529} Committed: https://chromium.googlesource.com/chromium/src/+/d688b918acfbbf4572db430fefeea3374286baf1

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : rebase #

Patch Set 4 : rm unittest #

Patch Set 5 : patch for landing #

Patch Set 6 : rebase #

Patch Set 7 : fix rebase #

Total comments: 2

Patch Set 8 : tkent #

Patch Set 9 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -8 lines) Patch
M content/browser/service_worker/service_worker_response_info.h View 4 chunks +6 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_response_info.cc View 5 chunks +19 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/chromium/resources/worker.js View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/chromium/use-counter.html View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.cpp View 4 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLResponse.h View 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
falken
horo@ ptal
3 years, 10 months ago (2017-01-27 11:03:55 UTC) #2
horo
On 2017/01/27 11:03:55, falken wrote: > horo@ ptal The production code looks good. But the ...
3 years, 10 months ago (2017-01-29 09:19:17 UTC) #7
falken
Thanks. I decided to just remove the unit test, there is enough test coverage from ...
3 years, 10 months ago (2017-01-30 04:02:34 UTC) #8
horo
lgtm
3 years, 10 months ago (2017-01-30 16:29:15 UTC) #13
falken
jochen: Can you review everything except resource_messages.h? tsepez: Can you review resource_messages.h?
3 years, 10 months ago (2017-01-31 00:00:28 UTC) #15
Tom Sepez
lgtm
3 years, 10 months ago (2017-01-31 00:33:59 UTC) #16
falken
Adding owners. alexmos: content/child and content/public jbroman: WebKit/Source tkent: WebKit/public jwd: histograms
3 years, 10 months ago (2017-02-03 00:35:06 UTC) #18
falken
+jbroman for WebKit/Source
3 years, 10 months ago (2017-02-03 00:35:32 UTC) #20
tkent
> tkent: WebKit/public lgtm https://codereview.chromium.org/2659043002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2659043002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode508 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:508: UseCounter::count(m_frame->document(), nit: You can use ...
3 years, 10 months ago (2017-02-03 00:55:19 UTC) #21
alexmos
content/child and content/public LGTM
3 years, 10 months ago (2017-02-03 00:58:21 UTC) #22
falken
Thanks, done. https://codereview.chromium.org/2659043002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2659043002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode508 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:508: UseCounter::count(m_frame->document(), On 2017/02/03 00:55:19, tkent wrote: > ...
3 years, 10 months ago (2017-02-03 01:07:07 UTC) #23
falken
ping jbroman and jwd
3 years, 10 months ago (2017-02-04 00:35:48 UTC) #24
jbroman
lgtm
3 years, 10 months ago (2017-02-04 18:27:28 UTC) #25
jwd
lgtm
3 years, 10 months ago (2017-02-06 15:50:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2659043002/160001
3 years, 10 months ago (2017-02-07 00:57:10 UTC) #29
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 02:59:18 UTC) #32
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/d688b918acfbbf4572db430fefee...

Powered by Google App Engine
This is Rietveld 408576698