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

Issue 2604633002: Mute use counters for internal pages (Closed)

Created:
3 years, 12 months ago by Rick Byers
Modified:
3 years, 12 months ago
CC:
chromium-reviews, blink-reviews, foolip, kinuko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mute use counters for internal pages Whenever a new top-level page is loaded, the UseCounter state is reset. This CL extends that infrastructure to pass along the URL of the page that's being loaded. We then use the scheme of the URL to decide if tracking usage metrics is useful or not, to avoid polluting our metrics with results from webui, DevTools, etc. This CL makes no changes to the "legacy" counter histograms in order to preserve their semantics while we transition to the new histograms. BUG=652336 Committed: https://crrev.com/146accf2581a4ac5184cc9c5f0f2e2a91bf4be23 Cr-Commit-Position: refs/heads/master@{#440660}

Patch Set 1 #

Total comments: 2

Patch Set 2 : lunalu CR feedback: improve comments/tests #

Total comments: 2

Patch Set 3 : CR feedback #

Patch Set 4 : Fix depecations on internal pages #

Patch Set 5 : Update a related comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -24 lines) Patch
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 6 chunks +34 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounterTest.cpp View 1 2 3 7 chunks +122 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp View 1 chunk +12 lines, -0 lines 1 comment Download

Messages

Total messages: 38 (17 generated)
Rick Byers
Hey Luna, I think everyone with context on this is OOO today for the holidays. ...
3 years, 12 months ago (2016-12-23 18:41:07 UTC) #4
lunalu1
lgtm https://codereview.chromium.org/2604633002/diff/1/third_party/WebKit/Source/core/frame/UseCounterTest.cpp File third_party/WebKit/Source/core/frame/UseCounterTest.cpp (right): https://codereview.chromium.org/2604633002/diff/1/third_party/WebKit/Source/core/frame/UseCounterTest.cpp#newcode38 third_party/WebKit/Source/core/frame/UseCounterTest.cpp:38: KURL dummyUrl = URLTestHelpers::toKURL("https://dummysite.com/"); Please correct me if ...
3 years, 12 months ago (2016-12-23 19:26:26 UTC) #6
Rick Byers
https://codereview.chromium.org/2604633002/diff/1/third_party/WebKit/Source/core/frame/UseCounterTest.cpp File third_party/WebKit/Source/core/frame/UseCounterTest.cpp (right): https://codereview.chromium.org/2604633002/diff/1/third_party/WebKit/Source/core/frame/UseCounterTest.cpp#newcode38 third_party/WebKit/Source/core/frame/UseCounterTest.cpp:38: KURL dummyUrl = URLTestHelpers::toKURL("https://dummysite.com/"); On 2016/12/23 19:26:25, loonybear wrote: ...
3 years, 12 months ago (2016-12-23 19:34:59 UTC) #7
lunalu1
Looks great! Thanks for letting me review this.
3 years, 12 months ago (2016-12-23 19:39:48 UTC) #8
Rick Byers
/cc csharrison@ for the changes to platform/weborigin/SchemeRegistry but since everyone is out for the holidays ...
3 years, 12 months ago (2016-12-23 19:42:11 UTC) #9
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/2604633002/40001
3 years, 12 months ago (2016-12-23 19:42:24 UTC) #12
Charlie Harrison
+kinuko FYI Since this is at the page load level it isn't a big deal, ...
3 years, 12 months ago (2016-12-23 20:53:39 UTC) #14
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/359994)
3 years, 12 months ago (2016-12-23 21:01:00 UTC) #16
Rick Byers
On 2016/12/23 20:53:39, Charlie Harrison OOO Dec 15-21 wrote: > +kinuko FYI > > Since ...
3 years, 12 months ago (2016-12-23 21:20:06 UTC) #17
Rick Byers
On 2016/12/23 21:20:06, Rick Byers wrote: > On 2016/12/23 20:53:39, Charlie Harrison OOO Dec 15-21 ...
3 years, 12 months ago (2016-12-23 21:21:47 UTC) #18
Charlie Harrison
On 2016/12/23 21:20:06, Rick Byers wrote: > On 2016/12/23 20:53:39, Charlie Harrison OOO Dec 15-21 ...
3 years, 12 months ago (2016-12-23 21:28:40 UTC) #19
Charlie Harrison
On 2016/12/23 21:21:47, Rick Byers wrote: > On 2016/12/23 21:20:06, Rick Byers wrote: > > ...
3 years, 12 months ago (2016-12-23 21:31:00 UTC) #20
Rick Byers
On 2016/12/23 21:28:40, Charlie Harrison (back Jan 3) wrote: > On 2016/12/23 21:20:06, Rick Byers ...
3 years, 12 months ago (2016-12-23 21:36:42 UTC) #21
Charlie Harrison
On 2016/12/23 21:36:42, Rick Byers wrote: > On 2016/12/23 21:28:40, Charlie Harrison (back Jan 3) ...
3 years, 12 months ago (2016-12-23 22:04:40 UTC) #22
Rick Byers
On 2016/12/23 22:04:40, Charlie Harrison (back Jan 3) wrote: > On 2016/12/23 21:36:42, Rick Byers ...
3 years, 12 months ago (2016-12-23 22:19:44 UTC) #25
Rick Byers
Luna, The CQ identified a subtle bug in my patch. Internal pages (like chrome://settings) which ...
3 years, 12 months ago (2016-12-23 22:21:25 UTC) #26
lunalu1
On 2016/12/23 22:21:25, Rick Byers OOO until 1-2 wrote: > Luna, > The CQ identified ...
3 years, 12 months ago (2016-12-23 22:26:11 UTC) #27
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/2604633002/80001
3 years, 12 months ago (2016-12-23 22:31:46 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 12 months ago (2016-12-24 00:22:38 UTC) #34
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/146accf2581a4ac5184cc9c5f0f2e2a91bf4be23 Cr-Commit-Position: refs/heads/master@{#440660}
3 years, 12 months ago (2016-12-24 00:24:09 UTC) #36
PhistucK
3 years, 12 months ago (2016-12-24 08:19:26 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2604633002/diff/80001/third_party/WebKit/Sour...
File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right):

https://codereview.chromium.org/2604633002/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:247: // "data"
is not included because real sites shouldn't be using it for
I have seen data: used as a top level browsing context. It was mostly used for
anonymous redirection (or anonymous redirection with a delay in order to show
advertisements).

"shouldn't" died when the web was created. "We do not care about those" is more
appropriate, but politically incorrect. :)

Powered by Google App Engine
This is Rietveld 408576698