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

Issue 2796283005: Adding UseCounter specific for extensions (Closed)

Created:
3 years, 8 months ago by lunalu1
Modified:
3 years, 7 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding UseCounter specific for extensions Replaced Blink.UseCounter.Features by Blink.UseCounter.Extensions.Features when URL protocol is chrome-extension:// BUG=687169 Review-Url: https://codereview.chromium.org/2796283005 Cr-Commit-Position: refs/heads/master@{#473409} Committed: https://chromium.googlesource.com/chromium/src/+/fc32d83f891bf73c8ce299d6813baf812907a8c8

Patch Set 1 #

Total comments: 1

Patch Set 2 : Codereview: added extension context and disabled context #

Patch Set 3 : update after the great name change #

Patch Set 4 : bug fix #

Total comments: 9

Patch Set 5 : Codereview: nit + refactored UseCounterTests unaffected_histograms => all_histograms / affected_his… #

Total comments: 10

Patch Set 6 : Codereview: added tester ExpectTotalCountExcept to simplify UseCounter unit tests #

Total comments: 27

Patch Set 7 : Codereview: nit #

Patch Set 8 : Codereview: added Getter for bucket count in histogram tester #

Patch Set 9 : Fix compile error #

Total comments: 2

Patch Set 10 : Codereview: nit #

Patch Set 11 : Nit #

Patch Set 12 : Bud fix: when context is extension, CSSHistograms are never created #

Patch Set 13 : Rebase #

Patch Set 14 : Fix compile err #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -93 lines) Patch
M base/test/histogram_tester.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M base/test/histogram_tester.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 8 chunks +43 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounterTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +85 lines, -54 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/HistogramTester.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/HistogramTester.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 110 (73 generated)
lunalu1
Hi Rick, PTAL
3 years, 8 months ago (2017-04-06 18:50:17 UTC) #2
Rick Byers
Thanks Luna. It doesn't look like this is complete. You've updated the PageVisits bucket (denominator), ...
3 years, 8 months ago (2017-04-07 17:46:54 UTC) #3
lunalu1
Hi Rick! Thanks for the comments. I manually tested this with lighthouse extension, and the ...
3 years, 8 months ago (2017-04-24 15:54:31 UTC) #24
Rick Byers
LGTM with nits https://codereview.chromium.org/2796283005/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2796283005/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1171 third_party/WebKit/Source/core/frame/UseCounter.cpp:1171: else if (!SchemeRegistry::ShouldTrackUsageMetricsForScheme(url.Protocol())) nit: avoid the ...
3 years, 7 months ago (2017-04-28 15:04:40 UTC) #25
lunalu1
Hi Rick, Thanks for your comments. I made the change as you suggested. Could you ...
3 years, 7 months ago (2017-05-01 15:37:52 UTC) #28
Rick Byers
Thanks for the cleanup Luna! Just trying to see if we can simplify this further: ...
3 years, 7 months ago (2017-05-01 21:19:20 UTC) #31
lunalu1
Hi Rick, Thank you for the comments. I will make the changes accordingly. But before ...
3 years, 7 months ago (2017-05-04 15:33:57 UTC) #32
lunalu1
Done. PTAL
3 years, 7 months ago (2017-05-09 17:48:31 UTC) #35
lunalu1
Hi thakis@, could you PTAL at: base/test/histogram_tester* Hi asvitkine@, could you PTAL at: tools/metrics/histograms/histograms.xml Thanks
3 years, 7 months ago (2017-05-09 17:51:16 UTC) #38
lunalu1
Hi jwd@, could you PTAL at: tools/metrics/histograms/histograms.xml Thanks
3 years, 7 months ago (2017-05-09 17:52:23 UTC) #40
Nico
Actually +asvitkine, looks like you forgot to add him. (asvitkine: histograms.xml, and my comment below) ...
3 years, 7 months ago (2017-05-09 19:36:46 UTC) #42
Alexei Svitkine (slow)
https://codereview.chromium.org/2796283005/diff/140001/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/2796283005/diff/140001/base/test/histogram_tester.h#newcode132 base/test/histogram_tester.h:132: // for histogram |name|. I wonder if it wouldn't ...
3 years, 7 months ago (2017-05-10 15:17:30 UTC) #45
Nico
https://codereview.chromium.org/2796283005/diff/140001/third_party/WebKit/Source/core/frame/UseCounterTest.cpp File third_party/WebKit/Source/core/frame/UseCounterTest.cpp (right): https://codereview.chromium.org/2796283005/diff/140001/third_party/WebKit/Source/core/frame/UseCounterTest.cpp#newcode22 third_party/WebKit/Source/core/frame/UseCounterTest.cpp:22: const char* const kSVGFeaturesHistogramName = On 2017/05/10 15:17:30, Alexei ...
3 years, 7 months ago (2017-05-10 15:38:20 UTC) #46
lunalu1
Hi Nico and Alexie, Thank you for your comments. I made a few changes. Please ...
3 years, 7 months ago (2017-05-10 19:39:39 UTC) #47
Alexei Svitkine (slow)
https://codereview.chromium.org/2796283005/diff/140001/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/2796283005/diff/140001/base/test/histogram_tester.h#newcode132 base/test/histogram_tester.h:132: // for histogram |name|. On 2017/05/10 19:39:38, loonybear wrote: ...
3 years, 7 months ago (2017-05-10 19:45:19 UTC) #50
lunalu1
Done. Please take another look. Thanks!
3 years, 7 months ago (2017-05-11 16:02:59 UTC) #53
lunalu1
I removed default case in UseCounter::FeaturesHistogram as suggested. But now I am encountering this compile ...
3 years, 7 months ago (2017-05-11 17:51:46 UTC) #61
lunalu1
I removed default case in UseCounter::FeaturesHistogram as suggested. But now I am encountering this compile ...
3 years, 7 months ago (2017-05-11 17:51:50 UTC) #62
lunalu1
Please ignore my previous note. I figured it out.
3 years, 7 months ago (2017-05-11 17:56:43 UTC) #63
Rick Byers
This looks great, thank you for the simplification to the tests! LGTM with nit https://codereview.chromium.org/2796283005/diff/220001/third_party/WebKit/Source/core/frame/UseCounterTest.cpp ...
3 years, 7 months ago (2017-05-12 17:51:21 UTC) #68
Alexei Svitkine (slow)
lgtm
3 years, 7 months ago (2017-05-12 21:09:18 UTC) #69
jwd
lgtm
3 years, 7 months ago (2017-05-15 14:25:37 UTC) #70
lunalu1
Hi thakis, Could you please owner approve base/test/histogram_tester.cc base/test/histogram_tester.h ? Thanks https://codereview.chromium.org/2796283005/diff/220001/third_party/WebKit/Source/core/frame/UseCounterTest.cpp File third_party/WebKit/Source/core/frame/UseCounterTest.cpp (right): ...
3 years, 7 months ago (2017-05-15 14:34:28 UTC) #71
Nico
lgtm
3 years, 7 months ago (2017-05-16 14:37:04 UTC) #79
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/2796283005/300001
3 years, 7 months ago (2017-05-16 14:37:41 UTC) #82
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/454794)
3 years, 7 months ago (2017-05-16 15:19:06 UTC) #84
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/2796283005/320001
3 years, 7 months ago (2017-05-16 16:53:20 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/454926)
3 years, 7 months ago (2017-05-16 17:13:31 UTC) #89
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/2796283005/320001
3 years, 7 months ago (2017-05-17 21:53:45 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/456584)
3 years, 7 months ago (2017-05-17 22:18:22 UTC) #93
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/2796283005/340001
3 years, 7 months ago (2017-05-19 14:51:56 UTC) #96
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/442417)
3 years, 7 months ago (2017-05-19 15:02:44 UTC) #98
haraken
On 2017/05/19 15:02:44, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-05-19 15:36:34 UTC) #99
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/2796283005/360001
3 years, 7 months ago (2017-05-19 15:40:07 UTC) #103
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/431906)
3 years, 7 months ago (2017-05-19 18:41:50 UTC) #105
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/2796283005/360001
3 years, 7 months ago (2017-05-20 03:28:26 UTC) #107
commit-bot: I haz the power
3 years, 7 months ago (2017-05-20 04:25:48 UTC) #110
Message was sent while issue was closed.
Committed patchset #14 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/fc32d83f891bf73c8ce299d6813b...

Powered by Google App Engine
This is Rietveld 408576698