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

Issue 1132093003: Add metrics to record TCP/UDP connections made from Flash (Closed)

Created:
5 years, 7 months ago by raymes
Modified:
5 years, 7 months ago
CC:
asvitkine+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, timwillis, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metrics to record TCP/UDP connections made from Flash BUG=472256 Committed: https://crrev.com/568fbcac71e0edcddded42eb4550fd2ad7e5e141 Cr-Commit-Position: refs/heads/master@{#329895}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -12 lines) Patch
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M content/common/pepper_renderer_instance_data.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M content/common/pepper_renderer_instance_data.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/host_dispatcher_wrapper.cc View 1 3 chunks +14 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_browser_connection.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (8 generated)
raymes
Sorry about the other CL, I used the wrong issue.
5 years, 7 months ago (2015-05-11 06:40:09 UTC) #2
raymes
https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h File content/browser/renderer_host/pepper/pepper_socket_utils.h (right): https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h#newcode52 content/browser/renderer_host/pepper/pepper_socket_utils.h:52: void RecordFlashConnectMetric(const std::string& plugin_module_name, > Is there a reason ...
5 years, 7 months ago (2015-05-11 06:44:22 UTC) #4
jww
https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h File content/browser/renderer_host/pepper/pepper_socket_utils.h (right): https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h#newcode52 content/browser/renderer_host/pepper/pepper_socket_utils.h:52: void RecordFlashConnectMetric(const std::string& plugin_module_name, On 2015/05/11 06:44:21, raymes wrote: ...
5 years, 7 months ago (2015-05-11 06:51:14 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h File content/browser/renderer_host/pepper/pepper_socket_utils.h (right): https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h#newcode52 content/browser/renderer_host/pepper/pepper_socket_utils.h:52: void RecordFlashConnectMetric(const std::string& plugin_module_name, On 2015/05/11 06:51:14, jww (traveling. ...
5 years, 7 months ago (2015-05-11 07:07:43 UTC) #6
jww
https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h File content/browser/renderer_host/pepper/pepper_socket_utils.h (right): https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h#newcode52 content/browser/renderer_host/pepper/pepper_socket_utils.h:52: void RecordFlashConnectMetric(const std::string& plugin_module_name, On 2015/05/11 07:07:43, Ryan Sleevi ...
5 years, 7 months ago (2015-05-11 22:58:03 UTC) #7
jww
https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h File content/browser/renderer_host/pepper/pepper_socket_utils.h (right): https://codereview.chromium.org/1132093003/diff/1/content/browser/renderer_host/pepper/pepper_socket_utils.h#newcode52 content/browser/renderer_host/pepper/pepper_socket_utils.h:52: void RecordFlashConnectMetric(const std::string& plugin_module_name, On 2015/05/11 22:58:03, jww (traveling. ...
5 years, 7 months ago (2015-05-11 23:25:12 UTC) #8
timwillis
> > From Tim and my perspective, we really do care specifically about Flash, > ...
5 years, 7 months ago (2015-05-12 01:57:16 UTC) #9
raymes
I've updated the patch. PTAL and let me know your thoughts. The metric still lives ...
5 years, 7 months ago (2015-05-12 02:23:33 UTC) #10
jww
https://codereview.chromium.org/1132093003/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/1132093003/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode1006 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:1006: } else { shouldn't this be "else if (pp_result ...
5 years, 7 months ago (2015-05-12 02:47:48 UTC) #11
raymes
https://codereview.chromium.org/1132093003/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/1132093003/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode1006 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:1006: } else { On 2015/05/12 02:47:47, jww (traveling. slow.) ...
5 years, 7 months ago (2015-05-12 04:56:44 UTC) #12
jww
Thanks for the changes. lgtm, with sleevi and OWNER approval. https://codereview.chromium.org/1132093003/diff/20001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1132093003/diff/20001/tools/metrics/actions/actions.xml#newcode10320 ...
5 years, 7 months ago (2015-05-12 05:10:04 UTC) #13
timwillis
Thanks for the fast work raymes and jww! On Mon, May 11, 2015 at 10:10 ...
5 years, 7 months ago (2015-05-12 05:24:05 UTC) #14
dcheng
+site-isolation-reviews So we actually have origin information in the browser process already, though it's not ...
5 years, 7 months ago (2015-05-12 07:14:29 UTC) #16
raymes
Would that still involve porting the code from Document::IsPrivilegedContext?
5 years, 7 months ago (2015-05-12 08:50:00 UTC) #17
dcheng
On 2015/05/12 at 08:50:00, raymes wrote: > Would that still involve porting the code from ...
5 years, 7 months ago (2015-05-12 11:37:39 UTC) #18
nasko
On 2015/05/12 07:14:29, dcheng wrote: > +site-isolation-reviews > > So we actually have origin information ...
5 years, 7 months ago (2015-05-12 14:16:03 UTC) #19
Ryan Sleevi
Just some drivebys, but overall looks good to me. Hopefully we can get this landed ...
5 years, 7 months ago (2015-05-12 22:56:06 UTC) #20
dcheng
https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode146 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:146: auto* data = instance_map_.get(instance); On 2015/05/12 22:56:05, Ryan Sleevi ...
5 years, 7 months ago (2015-05-12 23:56:20 UTC) #21
jww
On 2015/05/12 23:56:20, dcheng wrote: > https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc > File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): > > https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode146 > ...
5 years, 7 months ago (2015-05-13 00:05:23 UTC) #22
raymes
https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode146 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:146: auto* data = instance_map_.get(instance); On 2015/05/12 22:56:05, Ryan Sleevi ...
5 years, 7 months ago (2015-05-13 00:07:19 UTC) #23
raymes
https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode146 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:146: auto* data = instance_map_.get(instance); based on dcheng's comment, I ...
5 years, 7 months ago (2015-05-13 00:08:00 UTC) #24
dcheng
On 2015/05/13 at 00:05:23, jww wrote: > On 2015/05/12 23:56:20, dcheng wrote: > > https://codereview.chromium.org/1132093003/diff/40001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc ...
5 years, 7 months ago (2015-05-13 00:13:44 UTC) #25
timwillis
Good times. Anything else we're waiting on to land this change? Looks like we're good ...
5 years, 7 months ago (2015-05-13 00:30:56 UTC) #26
raymes
> > Since it sounds like we want this to make M44, I'm OK with ...
5 years, 7 months ago (2015-05-13 00:41:48 UTC) #27
timwillis
@raymes: Thanks for the context. rsleevi@ informes me that he doesn't need to lg this ...
5 years, 7 months ago (2015-05-13 13:35:15 UTC) #28
raymes
+OWNERS +isherman for tools/metrics/actions/actions.xml +jam for content/common/pepper_renderer_instance_data.* +tsepez for content/common/view_messages.h
5 years, 7 months ago (2015-05-13 23:46:00 UTC) #30
Ilya Sherman
Hmm, why did you choose to use UMA actions rather than histograms? Histograms are typically ...
5 years, 7 months ago (2015-05-13 23:49:40 UTC) #31
Tom Sepez
Messages LGTM
5 years, 7 months ago (2015-05-13 23:59:10 UTC) #32
raymes
isherman: Thanks I didn't really know about enumerated histograms. I've updated the CL accordingly.
5 years, 7 months ago (2015-05-14 01:28:43 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132093003/100001
5 years, 7 months ago (2015-05-14 01:33:21 UTC) #36
Ilya Sherman
Thanks! Metrics lgtm % suggestions: https://codereview.chromium.org/1132093003/diff/100001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/1132093003/diff/100001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode1010 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:1010: pepper_socket_utils::PLUGIN_CONTEXT_SECURITY_NUM_ENTRIES); nit: Since you're ...
5 years, 7 months ago (2015-05-14 02:26:01 UTC) #37
raymes
Thanks! 1 question below :) https://codereview.chromium.org/1132093003/diff/100001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/1132093003/diff/100001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode1010 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:1010: pepper_socket_utils::PLUGIN_CONTEXT_SECURITY_NUM_ENTRIES); On 2015/05/14 02:26:01, ...
5 years, 7 months ago (2015-05-14 02:47:44 UTC) #38
Ilya Sherman
https://codereview.chromium.org/1132093003/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1132093003/diff/100001/tools/metrics/histograms/histograms.xml#newcode60215 tools/metrics/histograms/histograms.xml:60215: + <int value="1" label="PLUGIN_CONTEXT_INSECURE"/> On 2015/05/14 02:47:44, raymes wrote: ...
5 years, 7 months ago (2015-05-14 02:54:29 UTC) #39
raymes
https://codereview.chromium.org/1132093003/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1132093003/diff/100001/tools/metrics/histograms/histograms.xml#newcode60215 tools/metrics/histograms/histograms.xml:60215: + <int value="1" label="PLUGIN_CONTEXT_INSECURE"/> Done. Ahh that makes sense! ...
5 years, 7 months ago (2015-05-14 03:03:58 UTC) #40
jam
On 2015/05/13 23:46:00, raymes wrote: > +OWNERS > > +isherman for > tools/metrics/actions/actions.xml > > ...
5 years, 7 months ago (2015-05-14 17:29:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132093003/140001
5 years, 7 months ago (2015-05-14 17:33:49 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-14 19:24:30 UTC) #45
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 19:25:35 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/568fbcac71e0edcddded42eb4550fd2ad7e5e141
Cr-Commit-Position: refs/heads/master@{#329895}

Powered by Google App Engine
This is Rietveld 408576698