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

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed)

Created:
5 years, 9 months ago by kojii
Modified:
5 years, 8 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an IPC method for Blink to call RapporService::RecordSample() This patch adds an IPC method for Blink to RapporService::RecordSample() to send data to RAPPOR. Combined with a Blink CL to collect hosts of Web Component usage (the link below), the data collected in Blink is sent to RapporService. Blink patch is in the following CL: https://codereview.chromium.org/986583002/ rappor.xml change is in a separate CL at: https://codereview.chromium.org/1071463003/ Another accompanying method to record a domain and registry of a URL is also added for bug 467648. Its Blink CL is at: https://codereview.chromium.org/1017433002/ BUG=461671, 429901 Committed: https://crrev.com/0f931925f7c0b966c2eb83321886077d30127964 Cr-Commit-Position: refs/heads/master@{#324563}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Changed to ETLD_PLUS_ONE #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Add IPC_MESSAGE_EXPORT #

Patch Set 7 : #

Patch Set 8 : ContentRendererClient #

Patch Set 9 : Comments and cleanup #

Total comments: 5

Patch Set 10 : ChromeRenderMessageFilter, and add a URL version for bug 467648 #

Total comments: 13

Patch Set 11 : Rebase #

Patch Set 12 : Fix all review comments, ran "git cl format" #

Total comments: 13

Patch Set 13 : Rebase #

Patch Set 14 : Add comments as suggested by asvitkine@ #

Patch Set 15 : Add URL to the comments suggested by asvitkine@ #

Patch Set 16 : Use SampleString in rappor_utils #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -0 lines) Patch
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +21 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (21 generated)
kojii
PTAL.
5 years, 9 months ago (2015-03-17 06:41:41 UTC) #2
Jói
I'm guessing you added me as a reviewer for content/public, but I'm no longer an ...
5 years, 9 months ago (2015-03-18 10:45:14 UTC) #3
kojii
On 2015/03/18 10:45:14, Jói wrote: > I'm guessing you added me as a reviewer for ...
5 years, 9 months ago (2015-03-18 15:35:02 UTC) #4
Steven Holte
https://codereview.chromium.org/1014543003/diff/1/components/rappor/rappor_service.cc File components/rappor/rappor_service.cc (right): https://codereview.chromium.org/1014543003/diff/1/components/rappor/rappor_service.cc#newcode198 components/rappor/rappor_service.cc:198: RecordSample(metric, COARSE_RAPPOR_TYPE, sample); This should probably be ETLD_PLUS_ONE type ...
5 years, 9 months ago (2015-03-23 20:34:06 UTC) #6
Ilya Sherman
What files did you want me to review?
5 years, 9 months ago (2015-03-23 20:54:31 UTC) #7
kojii
Thank you Steven. https://codereview.chromium.org/1014543003/diff/1/tools/metrics/rappor/rappor.xml File tools/metrics/rappor/rappor.xml (right): https://codereview.chromium.org/1014543003/diff/1/tools/metrics/rappor/rappor.xml#newcode238 tools/metrics/rappor/rappor.xml:238: <rappor-metric name="WebComponents.DocumentRegisterElement" type="COARSE_RAPPOR_TYPE"> On 2015/03/23 20:34:06, ...
5 years, 9 months ago (2015-03-25 08:05:54 UTC) #8
kojii
isherman@, sorry for not being clear. On 2015/03/23 20:54:31, Ilya Sherman wrote: > What files ...
5 years, 9 months ago (2015-03-25 08:11:51 UTC) #9
Steven Holte
https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode1014 content/renderer/renderer_blink_platform_impl.cc:1014: RenderThreadImpl::current()->RecordRappor(metric, sample.utf8()); What's the format of the sample? Is ...
5 years, 9 months ago (2015-03-25 17:57:26 UTC) #10
timvolodine
https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode1013 content/renderer/renderer_blink_platform_impl.cc:1013: const char* metric, const blink::WebString& sample) { koji@: can ...
5 years, 9 months ago (2015-03-25 18:56:19 UTC) #12
Ilya Sherman
I'd strongly prefer to find a way to implement this change without modifying code in ...
5 years, 9 months ago (2015-03-25 20:51:02 UTC) #13
Steven Holte
On 2015/03/25 20:51:02, Ilya Sherman wrote: > I'd strongly prefer to find a way to ...
5 years, 9 months ago (2015-03-25 22:02:33 UTC) #14
kojii
On 2015/03/25 17:57:26, Steven Holte wrote: > https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc > File content/renderer/renderer_blink_platform_impl.cc (right): > > https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode1014 ...
5 years, 9 months ago (2015-03-27 05:32:01 UTC) #15
kojii
On 2015/03/25 18:56:19, timvolodine wrote: > https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc > File content/renderer/renderer_blink_platform_impl.cc (right): > > https://codereview.chromium.org/1014543003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode1013 > ...
5 years, 9 months ago (2015-03-27 05:45:50 UTC) #16
chromium-reviews
I think it makes the most sense for this to be handled by the renderer, ...
5 years, 9 months ago (2015-03-27 05:59:47 UTC) #17
kojii
On 2015/03/25 20:51:02, Ilya Sherman wrote: > I'd strongly prefer to find a way to ...
5 years, 9 months ago (2015-03-27 06:08:27 UTC) #18
jam
content can't depend on components (ignore content/shell, and on e existing incorrect dependency). so you ...
5 years, 8 months ago (2015-03-31 14:33:29 UTC) #27
kojii
Thank you jam@, I was wondering which depends on which and tried to figure that ...
5 years, 8 months ago (2015-04-01 04:13:31 UTC) #29
jam
On 2015/04/01 04:13:31, koji wrote: > Thank you jam@, I was wondering which depends on ...
5 years, 8 months ago (2015-04-01 15:52:07 UTC) #30
kojii
On 2015/04/01 15:52:07, jam wrote: > > > > I think I need to share ...
5 years, 8 months ago (2015-04-02 00:32:12 UTC) #31
kojii
Tried ContentBrowserClient. mac_chromimum_ref_ng is failing, stil haven't figured out why, but I ended up with: ...
5 years, 8 months ago (2015-04-02 12:48:28 UTC) #34
jam
this seems like a lot of plumbing to make the IPC in componetns and the ...
5 years, 8 months ago (2015-04-02 16:24:14 UTC) #35
kojii
Thank you so much for the prompt review. On 2015/04/02 16:24:14, jam wrote: > this ...
5 years, 8 months ago (2015-04-02 17:52:32 UTC) #36
jam
On 2015/04/02 17:52:32, koji wrote: > Thank you so much for the prompt review. > ...
5 years, 8 months ago (2015-04-02 20:33:52 UTC) #37
kojii
PTAL. Using ChromeRenderMessageFilter simplified a lot. Also added a URL version for bug 467648 as ...
5 years, 8 months ago (2015-04-03 06:50:54 UTC) #39
jam
lgtm I'm sorry for not seeing your update earlier, I missed it :( In the ...
5 years, 8 months ago (2015-04-07 20:57:44 UTC) #40
Alexei Svitkine (slow)
https://codereview.chromium.org/1014543003/diff/360001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/1014543003/diff/360001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode410 chrome/browser/renderer_host/chrome_render_message_filter.cc:410: SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), Isn't this function in namespace rappor? https://codereview.chromium.org/1014543003/diff/360001/content/renderer/renderer_blink_platform_impl.cc File ...
5 years, 8 months ago (2015-04-07 21:01:57 UTC) #42
Alexei Svitkine (slow)
https://codereview.chromium.org/1014543003/diff/360001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/1014543003/diff/360001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode410 chrome/browser/renderer_host/chrome_render_message_filter.cc:410: SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), On 2015/04/07 21:01:56, Alexei Svitkine wrote: > Isn't ...
5 years, 8 months ago (2015-04-07 21:03:09 UTC) #43
kojii
PTAL. Thank you reviewers, esp. jam@, you're actually the fastest and the most helpful reviewer ...
5 years, 8 months ago (2015-04-08 07:21:23 UTC) #44
kojii
dcheng@, could you PTAL at chrome/common/render_messages.h? I think all other files are good thanks to ...
5 years, 8 months ago (2015-04-08 07:51:17 UTC) #46
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/1014543003/diff/400001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/1014543003/diff/400001/content/public/renderer/content_renderer_client.h#newcode295 content/public/renderer/content_renderer_client.h:295: // Record a sample string to ...
5 years, 8 months ago (2015-04-08 14:57:11 UTC) #47
dcheng
https://codereview.chromium.org/1014543003/diff/400001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/1014543003/diff/400001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode407 chrome/browser/renderer_host/chrome_render_message_filter.cc:407: rappor::SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), I'm a little curious--why is RecordSample() a member ...
5 years, 8 months ago (2015-04-08 15:15:20 UTC) #48
Alexei Svitkine (slow)
https://codereview.chromium.org/1014543003/diff/400001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/1014543003/diff/400001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode407 chrome/browser/renderer_host/chrome_render_message_filter.cc:407: rappor::SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), On 2015/04/08 15:15:20, dcheng wrote: > I'm a ...
5 years, 8 months ago (2015-04-08 16:42:56 UTC) #49
kojii
dcheng@, PTAL. Appreciate your ok for chrome/common/render_messages.h if you're fine with below. * Consistent static ...
5 years, 8 months ago (2015-04-08 17:31:46 UTC) #50
dcheng
IPC changes LGTM
5 years, 8 months ago (2015-04-08 17:33:53 UTC) #51
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/1014543003/diff/400001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/1014543003/diff/400001/content/public/renderer/content_renderer_client.h#newcode298 content/public/renderer/content_renderer_client.h:298: // Record a domain and registry ...
5 years, 8 months ago (2015-04-08 17:53:50 UTC) #52
kojii
On 2015/04/08 17:33:53, dcheng wrote: > IPC changes LGTM Thank you! The consistent function CL ...
5 years, 8 months ago (2015-04-08 17:56:59 UTC) #53
kojii
On 2015/04/08 17:53:50, Alexei Svitkine wrote: > lgtm % comments > > https://codereview.chromium.org/1014543003/diff/400001/content/public/renderer/content_renderer_client.h > File ...
5 years, 8 months ago (2015-04-08 18:00:53 UTC) #54
Steven Holte
lgtm Thanks for implementing this!
5 years, 8 months ago (2015-04-08 19:05:18 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014543003/520001
5 years, 8 months ago (2015-04-10 01:15:39 UTC) #60
commit-bot: I haz the power
Committed patchset #16 (id:520001)
5 years, 8 months ago (2015-04-10 01:19:49 UTC) #61
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 01:20:44 UTC) #62
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/0f931925f7c0b966c2eb83321886077d30127964
Cr-Commit-Position: refs/heads/master@{#324563}

Powered by Google App Engine
This is Rietveld 408576698