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

Issue 1115343002: Added a whitelist for trace events that are known to be PII-less. (Closed)

Created:
5 years, 7 months ago by oystein (OOO til 10th of July)
Modified:
5 years, 6 months ago
Reviewers:
dsinclair, nduca, jam, davidben
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added a whitelist for trace events that are known to have args without PII. Companion CL: https://codereview.chromium.org/1067233002/ R=nduca,davidben,jam BUG=466769 Committed: https://crrev.com/678b1e5a2bce8aff7b1099c001687061fc031e84 Cr-Commit-Position: refs/heads/master@{#330822}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated OWNERS #

Patch Set 3 : Merged in https://codereview.chromium.org/1126553005 #

Patch Set 4 : Moved whitelist to chrome #

Total comments: 2

Patch Set 5 : Always set the predicate #

Total comments: 4

Patch Set 6 : Review fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -34 lines) Patch
M base/trace_event/trace_event_impl.h View 1 2 3 4 7 chunks +16 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 1 2 3 4 12 chunks +71 lines, -30 lines 0 comments Download
M base/trace_event/trace_event_impl_constants.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/OWNERS View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/common/trace_event_args_whitelist.h View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/common/trace_event_args_whitelist.cc View 1 2 3 4 5 1 chunk +37 lines, -0 lines 1 comment Download

Messages

Total messages: 42 (9 generated)
oystein (OOO til 10th of July)
ptal
5 years, 7 months ago (2015-04-30 20:25:28 UTC) #1
nduca
lgtm https://codereview.chromium.org/1115343002/diff/1/content/common/OWNERS File content/common/OWNERS (right): https://codereview.chromium.org/1115343002/diff/1/content/common/OWNERS#newcode81 content/common/OWNERS:81: per-file trace_event_args_whitelist*=nduca@chromium.org lets add you here too now, ...
5 years, 7 months ago (2015-05-01 03:09:55 UTC) #2
oystein (OOO til 10th of July)
Adding +davidben for content/ OWNER. ptal :). See the two companion CLs for context. https://codereview.chromium.org/1115343002/diff/1/content/common/OWNERS ...
5 years, 7 months ago (2015-05-05 18:56:06 UTC) #4
davidben
+jam, are there any particular guidelines to follow about when to or not to add ...
5 years, 7 months ago (2015-05-06 14:58:47 UTC) #6
jam
On 2015/05/06 14:58:47, David Benjamin wrote: > +jam, are there any particular guidelines to follow ...
5 years, 7 months ago (2015-05-07 16:47:30 UTC) #7
oystein (OOO til 10th of July)
On 2015/05/07 16:47:30, jam wrote: > On 2015/05/06 14:58:47, David Benjamin wrote: > > +jam, ...
5 years, 7 months ago (2015-05-07 17:52:31 UTC) #8
jam
On 2015/05/07 17:52:31, Oystein wrote: > On 2015/05/07 16:47:30, jam wrote: > > On 2015/05/06 ...
5 years, 7 months ago (2015-05-07 20:04:05 UTC) #9
oystein (OOO til 10th of July)
On 2015/05/07 20:04:05, jam wrote: > On 2015/05/07 17:52:31, Oystein wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 20:18:48 UTC) #10
davidben
On 2015/05/07 20:18:48, Oystein wrote: > On 2015/05/07 20:04:05, jam wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 20:25:22 UTC) #11
oystein (OOO til 10th of July)
On 2015/05/07 20:25:22, David Benjamin wrote: > On 2015/05/07 20:18:48, Oystein wrote: > > On ...
5 years, 7 months ago (2015-05-07 20:39:39 UTC) #12
davidben
On 2015/05/07 20:39:39, Oystein wrote: > On 2015/05/07 20:25:22, David Benjamin wrote: > > On ...
5 years, 7 months ago (2015-05-07 20:45:35 UTC) #13
oystein (OOO til 10th of July)
On 2015/05/07 20:45:35, David Benjamin wrote: > On 2015/05/07 20:39:39, Oystein wrote: > > On ...
5 years, 7 months ago (2015-05-12 02:17:32 UTC) #16
jam
https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc#newcode102 content/browser/tracing/tracing_controller_impl.cc:102: GetContentClient()->GetTraceEventFilterPredicate()); why do you need to change content? seems ...
5 years, 7 months ago (2015-05-12 23:16:32 UTC) #17
oystein (OOO til 10th of July)
https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc#newcode102 content/browser/tracing/tracing_controller_impl.cc:102: GetContentClient()->GetTraceEventFilterPredicate()); On 2015/05/12 23:16:32, jam wrote: > why do ...
5 years, 7 months ago (2015-05-12 23:25:12 UTC) #18
jam
On 2015/05/12 23:25:12, Oystein wrote: > https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc > File content/browser/tracing/tracing_controller_impl.cc (right): > > https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc#newcode102 > ...
5 years, 7 months ago (2015-05-12 23:32:32 UTC) #19
oystein (OOO til 10th of July)
On 2015/05/12 23:32:32, jam wrote: > On 2015/05/12 23:25:12, Oystein wrote: > > > https://codereview.chromium.org/1115343002/diff/100001/content/browser/tracing/tracing_controller_impl.cc ...
5 years, 7 months ago (2015-05-12 23:58:48 UTC) #20
jabdelmalek
On 2015/05/12 23:58:48, Oystein wrote: > On 2015/05/12 23:32:32, jam wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-13 00:02:56 UTC) #21
chromium-reviews
That was suggested before as well and it's definitely possible, I'm just really skeptical of ...
5 years, 7 months ago (2015-05-13 00:18:07 UTC) #22
jam
On 2015/05/13 00:18:07, chromium-reviews wrote: > That was suggested before as well and it's definitely ...
5 years, 7 months ago (2015-05-13 02:05:25 UTC) #23
oystein (OOO til 10th of July)
On 2015/05/13 02:05:25, jam wrote: > On 2015/05/13 00:18:07, chromium-reviews wrote: > > That was ...
5 years, 7 months ago (2015-05-13 02:25:22 UTC) #24
jam
On 2015/05/13 02:25:22, Oystein wrote: > On 2015/05/13 02:05:25, jam wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 16:50:25 UTC) #25
oystein (OOO til 10th of July)
On 2015/05/13 16:50:25, jam wrote: > On 2015/05/13 02:25:22, Oystein wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 21:21:33 UTC) #26
oystein (OOO til 10th of July)
jam/davidben: How do we progress with this?
5 years, 7 months ago (2015-05-15 21:04:24 UTC) #27
jam
On 2015/05/13 21:21:33, Oystein wrote: > On 2015/05/13 16:50:25, jam wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-19 16:03:48 UTC) #28
oystein (OOO til 10th of July)
New version up after chatting offline with jam. We now always set the filtering predicate ...
5 years, 7 months ago (2015-05-20 00:42:48 UTC) #31
jam
lgtm, thanks for your patience in figuring out a minimal way of doing this https://codereview.chromium.org/1115343002/diff/160001/chrome/common/trace_event_args_whitelist.h ...
5 years, 7 months ago (2015-05-20 15:30:18 UTC) #32
oystein (OOO til 10th of July)
Great, thanks for the help jam@! https://codereview.chromium.org/1115343002/diff/160001/chrome/common/trace_event_args_whitelist.h File chrome/common/trace_event_args_whitelist.h (right): https://codereview.chromium.org/1115343002/diff/160001/chrome/common/trace_event_args_whitelist.h#newcode8 chrome/common/trace_event_args_whitelist.h:8: namespace chrome { ...
5 years, 7 months ago (2015-05-20 21:25:01 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115343002/180001
5 years, 7 months ago (2015-05-20 21:26:43 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:180001)
5 years, 7 months ago (2015-05-20 22:38:51 UTC) #37
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/678b1e5a2bce8aff7b1099c001687061fc031e84 Cr-Commit-Position: refs/heads/master@{#330822}
5 years, 7 months ago (2015-05-20 22:39:39 UTC) #38
dsinclair
https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_event_args_whitelist.cc File chrome/common/trace_event_args_whitelist.cc (right): https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_event_args_whitelist.cc#newcode12 chrome/common/trace_event_args_whitelist.cc:12: const char* const kEventArgsWhitelist[][2] = {{"toplevel", "*"}, Do these ...
5 years, 6 months ago (2015-06-01 14:56:09 UTC) #40
oystein (OOO til 10th of July)
On 2015/06/01 14:56:09, dsinclair wrote: > https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_event_args_whitelist.cc > File chrome/common/trace_event_args_whitelist.cc (right): > > https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_event_args_whitelist.cc#newcode12 > ...
5 years, 6 months ago (2015-06-01 17:37:17 UTC) #41
oystein (OOO til 10th of July)
5 years, 6 months ago (2015-06-01 17:42:23 UTC) #42
Message was sent while issue was closed.
On 2015/06/01 17:37:17, Oystein wrote:
> On 2015/06/01 14:56:09, dsinclair wrote:
> >
>
https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_ev...
> > File chrome/common/trace_event_args_whitelist.cc (right):
> > 
> >
>
https://codereview.chromium.org/1115343002/diff/180001/chrome/common/trace_ev...
> > chrome/common/trace_event_args_whitelist.cc:12: const char* const
> > kEventArgsWhitelist[][2] = {{"toplevel", "*"},
> > Do these get matched as exact matches or just contains matches? We have
events
> > like "toplevel.flow" will those pass the filter or be rejected?
> 
> It's using MatchPattern(), so unless there's ? or * wildcards, it'll be exact
> match only.

(The whitelist hasn't been populated in any meaningful way yet, by the way).

Powered by Google App Engine
This is Rietveld 408576698