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

Issue 6591087: Additional validation code for PrefixSet. (Closed)

Created:
9 years, 9 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
Reviewers:
lzheng
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Additional validation code for PrefixSet. The PrefixSet-vs-BloomFilter histograms showed a minor discrepency, with a very small number of PREFIX_SET_EVENT_BLOOM_MISS_PREFIX_HIT reports. This CL adds code to regenerate the prefix list and manually double-check. Additionally, reduce memory use by requiring the input prefix vector to be pre-sorted. BUG=71832 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76853

Patch Set 1 #

Total comments: 2

Patch Set 2 : prefixes -> sorted_prefixes. #

Patch Set 3 : Sense of histogram was WRONG~ #

Total comments: 3

Patch Set 4 : Back out testing chg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -35 lines) Patch
M chrome/browser/safe_browsing/prefix_set.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/prefix_set.cc View 1 3 chunks +27 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/prefix_set_unittest.cc View 3 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 7 chunks +60 lines, -16 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Scott Hess - ex-Googler
9 years, 9 months ago (2011-03-01 23:33:09 UTC) #1
Scott Hess - ex-Googler
Ping! Would like to get this in before weekend...
9 years, 9 months ago (2011-03-03 21:57:41 UTC) #2
lzheng1
Working on it now. On Thu, Mar 3, 2011 at 1:57 PM, <shess@chromium.org> wrote: > ...
9 years, 9 months ago (2011-03-03 22:15:11 UTC) #3
lzheng
LGTM. I thought I already done with this. http://codereview.chromium.org/6591087/diff/1/chrome/browser/safe_browsing/prefix_set.cc File chrome/browser/safe_browsing/prefix_set.cc (right): http://codereview.chromium.org/6591087/diff/1/chrome/browser/safe_browsing/prefix_set.cc#newcode25 chrome/browser/safe_browsing/prefix_set.cc:25: PrefixSet::PrefixSet(const ...
9 years, 9 months ago (2011-03-03 22:30:06 UTC) #4
Scott Hess - ex-Googler
seems reasonable. Thanks! On Thu, Mar 3, 2011 at 2:30 PM, <lzheng@chromium.org> wrote: > LGTM. ...
9 years, 9 months ago (2011-03-03 22:39:19 UTC) #5
lzheng1
LG. On Thu, Mar 3, 2011 at 2:39 PM, Scott Hess <shess@chromium.org> wrote: > seems ...
9 years, 9 months ago (2011-03-03 23:09:12 UTC) #6
Scott Hess - ex-Googler
oops. I noticed that the sense of the new histogram was wrong. fixed it rather ...
9 years, 9 months ago (2011-03-04 00:07:57 UTC) #7
lzheng
Don't forget to get rid of the change in protocol_manager.cc http://codereview.chromium.org/6591087/diff/2002/chrome/browser/safe_browsing/protocol_manager.cc File chrome/browser/safe_browsing/protocol_manager.cc (right): http://codereview.chromium.org/6591087/diff/2002/chrome/browser/safe_browsing/protocol_manager.cc#newcode120 ...
9 years, 9 months ago (2011-03-04 00:29:06 UTC) #8
Scott Hess - ex-Googler
9 years, 9 months ago (2011-03-04 00:40:07 UTC) #9
http://codereview.chromium.org/6591087/diff/2002/chrome/browser/safe_browsing...
File chrome/browser/safe_browsing/protocol_manager.cc (right):

http://codereview.chromium.org/6591087/diff/2002/chrome/browser/safe_browsing...
chrome/browser/safe_browsing/protocol_manager.cc:120: next_update_sec_ = 30;
On 2011/03/04 00:29:06, lzheng wrote:
> This should not be in the change?

Doh!  Testing code.  thx.

Powered by Google App Engine
This is Rietveld 408576698