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

Issue 1502583003: [Tracing] Add metadata filter (Closed)

Created:
5 years ago by Zhen Wang
Modified:
5 years ago
CC:
chromium-reviews, tracing+reviews_chromium.org, darin-cc_chromium.org, jam, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Tracing] Add metadata filter Metadata fields are not currently filtered. This CL adds the filter to strip out sensitive information is needed. It also adds a whitelist of the metadata fields that are allowed to be captured. BUG=560444 Committed: https://crrev.com/ecfd53476eea375a13ce1676a877a8b40f145e02 Cr-Commit-Position: refs/heads/master@{#364778}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : nit fix #

Total comments: 2

Patch Set 4 : use tracing delegate #

Patch Set 5 : fix compile failure on win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -13 lines) Patch
M chrome/browser/tracing/chrome_tracing_delegate.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tracing/chrome_tracing_delegate.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/trace_event_args_whitelist.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/trace_event_args_whitelist.cc View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_browsertest.cc View 1 2 3 7 chunks +123 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M content/browser/tracing/tracing_controller_impl_data_sinks.cc View 1 2 3 6 chunks +28 lines, -9 lines 0 comments Download
M content/public/browser/tracing_controller.h View 1 2 3 3 chunks +9 lines, -3 lines 0 comments Download
M content/public/browser/tracing_delegate.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/public/browser/tracing_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Zhen Wang
ptal
5 years ago (2015-12-06 23:22:13 UTC) #2
shatch
Awesome, thanks for taking this Zhen. Wait for Oystein to take a look but lgtm ...
5 years ago (2015-12-07 18:01:16 UTC) #4
Zhen Wang
https://codereview.chromium.org/1502583003/diff/20001/content/browser/tracing/tracing_controller_impl_data_sinks.cc File content/browser/tracing/tracing_controller_impl_data_sinks.cc (right): https://codereview.chromium.org/1502583003/diff/20001/content/browser/tracing/tracing_controller_impl_data_sinks.cc#newcode358 content/browser/tracing/tracing_controller_impl_data_sinks.cc:358: return metadata_copy.Pass();; On 2015/12/07 18:01:16, shatch wrote: > nit: ...
5 years ago (2015-12-07 22:25:29 UTC) #6
oystein (OOO til 10th of July)
Awesome, thanks! https://codereview.chromium.org/1502583003/diff/40001/content/browser/tracing/tracing_controller_impl_data_sinks.cc File content/browser/tracing/tracing_controller_impl_data_sinks.cc (right): https://codereview.chromium.org/1502583003/diff/40001/content/browser/tracing/tracing_controller_impl_data_sinks.cc#newcode309 content/browser/tracing/tracing_controller_impl_data_sinks.cc:309: const char* kMetadataWhitelist[] = { Hmm, it'd ...
5 years ago (2015-12-07 22:43:51 UTC) #7
Zhen Wang
https://codereview.chromium.org/1502583003/diff/40001/content/browser/tracing/tracing_controller_impl_data_sinks.cc File content/browser/tracing/tracing_controller_impl_data_sinks.cc (right): https://codereview.chromium.org/1502583003/diff/40001/content/browser/tracing/tracing_controller_impl_data_sinks.cc#newcode309 content/browser/tracing/tracing_controller_impl_data_sinks.cc:309: const char* kMetadataWhitelist[] = { On 2015/12/07 22:43:51, Oystein ...
5 years ago (2015-12-07 23:23:27 UTC) #8
Zhen Wang
I have updated the CL to use tracing delegate and put the white lists together. ...
5 years ago (2015-12-10 00:09:11 UTC) #9
oystein (OOO til 10th of July)
lgtm and thanks!
5 years ago (2015-12-10 19:52:18 UTC) #10
Zhen Wang
+sievers for //content/public/browser/
5 years ago (2015-12-10 20:04:58 UTC) #12
no sievers
On 2015/12/10 20:04:58, Zhen Wang wrote: > +sievers for //content/public/browser/ lgtm
5 years ago (2015-12-11 18:23:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502583003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502583003/80001
5 years ago (2015-12-11 18:28:33 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-11 19:48:48 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-11 19:49:40 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ecfd53476eea375a13ce1676a877a8b40f145e02
Cr-Commit-Position: refs/heads/master@{#364778}

Powered by Google App Engine
This is Rietveld 408576698