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

Issue 986583002: Collect host of Web Component usage to send to RAPPOR (Closed)

Created:
5 years, 9 months ago by kojii
Modified:
5 years, 9 months ago
Reviewers:
tkent, hayato, bashi
CC:
blink-reviews, arv+blink, vivekg, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, vivekg_samsung, Inactive, rwlbuis, bashi, haraken
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Collect host of Web Component usage to send to RAPPOR This patch is the Blink side of using RAPPOR to understand Web Components usage. It collects the host part of the URL where Element::createShadowRoot() and Document::registerElement() are used. To send the data to RAPPOR, we need to IPC to the browser process. This part will be in a separate patch for the Chromium side. The following conditions apply: 1. Calls from extensions and private scripts are excluded. 2. When IFRAME is used, counts the same hosts just once. 3. Count HTTP and HTTPS only. BUG=461671 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191893

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : Switch to 3-lines header for new files #

Patch Set 8 : Move m_useByOriginCounter to Page #

Patch Set 9 : Move to Platform to align with other histogram/UMA methods #

Total comments: 14

Patch Set 10 : Fix tkent@'s review comments #

Total comments: 2

Patch Set 11 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -2 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/dom/Element.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A Source/core/frame/OriginsUsingFeatures.h View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A Source/core/frame/OriginsUsingFeatures.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +86 lines, -0 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
kojii
hayato@, PTAL. CC'ed bashi@ and haraken@ as told by bashi@ when I consulted him for ...
5 years, 9 months ago (2015-03-09 16:16:46 UTC) #2
bashi
https://codereview.chromium.org/986583002/diff/100001/Source/core/frame/UseByOriginCounter.cpp File Source/core/frame/UseByOriginCounter.cpp (right): https://codereview.chromium.org/986583002/diff/100001/Source/core/frame/UseByOriginCounter.cpp#newcode1 Source/core/frame/UseByOriginCounter.cpp:1: /* nit: Use the 3-line license header.
5 years, 9 months ago (2015-03-09 23:42:32 UTC) #4
kojii
Thank you for your comment, license header updated. https://codereview.chromium.org/986583002/diff/100001/Source/core/frame/UseByOriginCounter.cpp File Source/core/frame/UseByOriginCounter.cpp (right): https://codereview.chromium.org/986583002/diff/100001/Source/core/frame/UseByOriginCounter.cpp#newcode1 Source/core/frame/UseByOriginCounter.cpp:1: /* ...
5 years, 9 months ago (2015-03-10 05:06:16 UTC) #5
kojii
PTAL. Chromium side is now working, I'll test and clean up a bit more before ...
5 years, 9 months ago (2015-03-13 11:52:51 UTC) #6
kojii
tkent@, could you PTAL? I noticed that public/OWNERS has much fewer owners. Should I split ...
5 years, 9 months ago (2015-03-13 12:46:19 UTC) #9
tkent
https://codereview.chromium.org/986583002/diff/160001/Source/core/frame/UseByOriginCounter.cpp File Source/core/frame/UseByOriginCounter.cpp (right): https://codereview.chromium.org/986583002/diff/160001/Source/core/frame/UseByOriginCounter.cpp#newcode33 Source/core/frame/UseByOriginCounter.cpp:33: ASSERT((unsigned)feature >= 0 && feature < Feature::NumberOfFeatures); We don't ...
5 years, 9 months ago (2015-03-16 00:30:19 UTC) #10
tkent
On 2015/03/13 12:46:19, koji wrote: > Should I split the change to that file to ...
5 years, 9 months ago (2015-03-16 00:31:35 UTC) #11
kojii
On 2015/03/16 00:31:35, tkent wrote: > On 2015/03/13 12:46:19, koji wrote: > > Should I ...
5 years, 9 months ago (2015-03-16 03:52:38 UTC) #12
kojii
All fixed, PTAL. https://codereview.chromium.org/986583002/diff/160001/Source/core/frame/UseByOriginCounter.cpp File Source/core/frame/UseByOriginCounter.cpp (right): https://codereview.chromium.org/986583002/diff/160001/Source/core/frame/UseByOriginCounter.cpp#newcode33 Source/core/frame/UseByOriginCounter.cpp:33: ASSERT((unsigned)feature >= 0 && feature < ...
5 years, 9 months ago (2015-03-16 03:52:51 UTC) #13
tkent
lgtm https://codereview.chromium.org/986583002/diff/180001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/986583002/diff/180001/public/platform/Platform.h#newcode545 public/platform/Platform.h:545: // Record to RAPPPOR. RAPPPOR -> RAPPOR
5 years, 9 months ago (2015-03-16 04:59:21 UTC) #14
bashi
LGTM on ScriptState use
5 years, 9 months ago (2015-03-16 05:28:56 UTC) #15
hayato
lgtm
5 years, 9 months ago (2015-03-16 05:50:40 UTC) #16
kojii
Thank you for the reviews! https://codereview.chromium.org/986583002/diff/180001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/986583002/diff/180001/public/platform/Platform.h#newcode545 public/platform/Platform.h:545: // Record to RAPPPOR. ...
5 years, 9 months ago (2015-03-16 06:45:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986583002/200001
5 years, 9 months ago (2015-03-16 06:45:54 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 06:49:09 UTC) #21
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191893

Powered by Google App Engine
This is Rietveld 408576698