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

Issue 790703003: De-dup PrefixSet code in SafeBrowsingDatabaseManager. (Closed)

Created:
6 years ago by gab
Modified:
5 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org, asvitkine+watch_chromium.org, jar (doing other things), Ilya Sherman, Mark P
Base URL:
https://chromium.googlesource.com/chromium/src.git@a5_rm_unused_extensionsBL
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

De-dup PrefixSet code in SafeBrowsingDatabaseManager. A lot of SideEffectWhiteListPrefixSet related code was mostly a duplicate of the other PrefixSet code in the same file. Only logical side-effect this has is grouping histograms for all PrefixSets in the same bucket. This will be addressed as a follow-up in https://codereview.chromium.org/815863002/ where relevant histograms will be split once again. This cleanup makes it easier to progress on issue 440517. BUG=440517 TBR=jwd Committed: https://crrev.com/fe11d94a8cb3e3b7d942d1cb3f654c75fe664678 Cr-Commit-Position: refs/heads/master@{#309589}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase off of CL 744183002 #

Patch Set 3 : grammar nits in histogram descriptions #

Patch Set 4 : rebase onto 744183002 #

Total comments: 7

Patch Set 5 : +TODO #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -92 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 8 chunks +34 lines, -74 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 6 chunks +29 lines, -16 lines 9 comments Download

Messages

Total messages: 35 (10 generated)
gab
Hey Matt PTAL, thanks again!! Cheers, Gab https://codereview.chromium.org/790703003/diff/1/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (left): https://codereview.chromium.org/790703003/diff/1/chrome/browser/safe_browsing/safe_browsing_database.cc#oldcode1425 chrome/browser/safe_browsing/safe_browsing_database.cc:1425: builder.GetPrefixSetNoHashes()); GetPrefixSetNoHashes() ...
6 years ago (2014-12-09 21:21:33 UTC) #2
gab
Bots are failing to patch because this CL is based on https://codereview.chromium.org/744183002/ which touches closely ...
6 years ago (2014-12-10 02:37:42 UTC) #3
gab
FYI, rebased this on trunk, all green now :-) On 2014/12/10 02:37:42, gab wrote: > ...
6 years ago (2014-12-10 19:07:16 UTC) #4
mattm
Would like to see the histograms split, otherwise good
6 years ago (2014-12-12 19:35:50 UTC) #5
gab
On 2014/12/12 19:35:50, mattm wrote: > Would like to see the histograms split, otherwise good ...
6 years ago (2014-12-15 21:39:47 UTC) #6
mattm
On 2014/12/15 21:39:47, gab wrote: > On 2014/12/12 19:35:50, mattm wrote: > > Would like ...
6 years ago (2014-12-16 03:26:01 UTC) #7
gab
@Scott: see question for you below. On 2014/12/16 03:26:01, mattm wrote: > On 2014/12/15 21:39:47, ...
6 years ago (2014-12-16 14:45:43 UTC) #9
Scott Hess - ex-Googler
Mostly fine with this. The main reason things are the way they are is because ...
6 years ago (2014-12-16 23:34:32 UTC) #10
gab
Thanks for your comments, see replies below. Most importantly, I'm proposing https://codereview.chromium.org/815863002/ as a follow-up ...
6 years ago (2014-12-18 21:14:44 UTC) #11
Scott Hess - ex-Googler
LGTM. [I don't think there was anything pending from Matt.] Do you want to be ...
6 years ago (2014-12-19 21:25:48 UTC) #12
gab
Thanks, TODO added. https://codereview.chromium.org/790703003/diff/60001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/790703003/diff/60001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1343 chrome/browser/safe_browsing/safe_browsing_database.cc:1343: } On 2014/12/19 21:25:47, Scott Hess ...
6 years ago (2014-12-22 16:11:24 UTC) #13
gab
On 2014/12/19 21:25:48, Scott Hess wrote: > LGTM. [I don't think there was anything pending ...
6 years ago (2014-12-22 16:28:25 UTC) #14
gab
+jwd for histograms, thanks!
6 years ago (2014-12-22 16:31:03 UTC) #16
gab
@jar/isherman/mpearson: looks like jwd@ is out for the holidays, is one of you in today? ...
6 years ago (2014-12-22 18:14:49 UTC) #18
gab
On 2014/12/22 18:14:49, gab wrote: > @jar/isherman/mpearson: looks like jwd@ is out for the holidays, ...
6 years ago (2014-12-23 19:11:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790703003/80001
6 years ago (2014-12-23 19:12:56 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/10987)
6 years ago (2014-12-23 21:37:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790703003/80001
6 years ago (2014-12-23 21:45:06 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-24 00:22:05 UTC) #27
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/fe11d94a8cb3e3b7d942d1cb3f654c75fe664678 Cr-Commit-Position: refs/heads/master@{#309589}
6 years ago (2014-12-24 00:22:48 UTC) #28
Mark P
Please follow up with these histograms.xml comments in https://codereview.chromium.org/815863002/ thanks, mark https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): ...
5 years, 11 months ago (2015-01-02 19:56:20 UTC) #30
gab
Thanks, comments addressed on https://codereview.chromium.org/815863002/ https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode29769 tools/metrics/histograms/histograms.xml:29769: - Replaced by SB2.BrowseDatabaseKilobytes. ...
5 years, 11 months ago (2015-01-05 18:24:38 UTC) #31
Ilya Sherman
One more nit: https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode30357 tools/metrics/histograms/histograms.xml:30357: -</histogram> Please mark this obsolete rather ...
5 years, 11 months ago (2015-01-06 00:21:17 UTC) #33
gab
@Ilya: please see reply inline. https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode30357 tools/metrics/histograms/histograms.xml:30357: -</histogram> On 2015/01/06 00:21:17, ...
5 years, 11 months ago (2015-01-06 13:37:30 UTC) #34
Ilya Sherman
5 years, 11 months ago (2015-01-06 22:49:02 UTC) #35
Message was sent while issue was closed.
https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms...
File tools/metrics/histograms/histograms.xml (left):

https://codereview.chromium.org/790703003/diff/80001/tools/metrics/histograms...
tools/metrics/histograms/histograms.xml:30357: -</histogram>
On 2015/01/06 13:37:30, gab wrote:
> On 2015/01/06 00:21:17, Ilya Sherman wrote:
> > Please mark this obsolete rather than removing it entirely.
> 
> It was never ever reported, instead the code was reporting
> "SB2.SideEffectFreePrefixSetWrite" which I added (as obsolete) above.
> 
> Is that fine? Or does some histograms infra depend on this histogram being
> marked as obsolete despite having never received any reports for it?

I see -- in that case, there is indeed no reason to mark it as <obsolete>. 
Thanks for the clarification.

Powered by Google App Engine
This is Rietveld 408576698