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

Issue 2190233002: Rice decode removals and additions and use them to update the store. (Closed)

Created:
4 years, 4 months ago by vakh (use Gerrit instead)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, woz, noƩ, Scott Hess - ex-Googler, palmer, francois_mozilla.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@01_v4_rice
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rice decode removals and additions and use them to update the store. Also: 1. Add histograms for decoding additions/removals. 2. Update the histogram for ApplyUpdateResult to include the new failure values. Please note that this CL does not enable RICE encoding yet since we still telling the server that we can only process RAW updates. I'll make that tiny change as a separate CL so that it is easier to rollback, if needed. BUG=543161, 624567 Committed: https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887 Cr-Commit-Position: refs/heads/master@{#409844}

Patch Set 1 : TODOs: Add unit tests, remove DVLOGs #

Patch Set 2 : git pull #

Patch Set 3 : Remove DVLOGs. Add tests (not proud of the last test). #

Total comments: 27

Patch Set 4 : CR feedback: nparker@ #

Patch Set 5 : Update comment in histograms.xml #

Patch Set 6 : retry upload #

Patch Set 7 : Add Process{Full,Partial}Update methods to simplify ApplyUpdate and reduce nesting #

Patch Set 8 : Tiny: Move the declaration of hash_prefix_map closer to use #

Patch Set 9 : Tiny: Remove a comment. Club non-static functions together in .h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -68 lines) Patch
M components/safe_browsing_db/v4_rice.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M components/safe_browsing_db/v4_store.h View 1 2 3 4 5 6 7 8 3 chunks +29 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 2 3 4 5 6 7 8 6 chunks +116 lines, -43 lines 0 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 2 3 5 chunks +86 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 6 chunks +56 lines, -21 lines 0 comments Download

Messages

Total messages: 63 (37 generated)
vakh (use Gerrit instead)
git fetch and pull
4 years, 4 months ago (2016-07-29 01:52:25 UTC) #5
vakh (use Gerrit instead)
Also add v4_rice.h/cc to safe_browsing_db.gypi
4 years, 4 months ago (2016-07-29 02:05:18 UTC) #8
vakh (use Gerrit instead)
Also add v4_rice.h/cc to safe_browsing_db.gypi
4 years, 4 months ago (2016-07-29 07:09:13 UTC) #14
vakh (use Gerrit instead)
4 years, 4 months ago (2016-07-29 07:12:37 UTC) #18
vakh (use Gerrit instead)
Gentle ping.
4 years, 4 months ago (2016-08-02 20:11:29 UTC) #22
vakh (use Gerrit instead)
+ francois@mozilla.com
4 years, 4 months ago (2016-08-02 20:21:30 UTC) #23
Nathan Parker
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode51 components/safe_browsing_db/v4_store.cc:51: UMA_HISTOGRAM_ENUMERATION("SafeBrowsing.V4DecodeRemovalsResult", result, It'd be good to get some size/time ...
4 years, 4 months ago (2016-08-02 23:43:31 UTC) #24
vakh (use Gerrit instead)
CR feedback: nparker@
4 years, 4 months ago (2016-08-03 01:44:36 UTC) #25
vakh (use Gerrit instead)
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode51 components/safe_browsing_db/v4_store.cc:51: UMA_HISTOGRAM_ENUMERATION("SafeBrowsing.V4DecodeRemovalsResult", result, On 2016/08/02 23:43:30, Nathan Parker wrote: > ...
4 years, 4 months ago (2016-08-03 01:44:49 UTC) #27
vakh (use Gerrit instead)
Update comment in histograms.xml
4 years, 4 months ago (2016-08-03 01:51:29 UTC) #29
vakh (use Gerrit instead)
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode135 components/safe_browsing_db/v4_store.cc:135: const CompressionType compression_type = removal.compression_type(); On 2016/08/02 23:43:31, Nathan ...
4 years, 4 months ago (2016-08-03 06:54:53 UTC) #34
vakh (use Gerrit instead)
+pkasting for histograms.
4 years, 4 months ago (2016-08-03 18:05:35 UTC) #36
Nathan Parker
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode198 components/safe_browsing_db/v4_store.cc:198: ApplyUpdateResult apply_update_result; On 2016/08/03 01:44:48, vakh wrote: > On ...
4 years, 4 months ago (2016-08-03 21:16:37 UTC) #37
vakh (use Gerrit instead)
retry upload
4 years, 4 months ago (2016-08-03 22:39:00 UTC) #38
vakh (use Gerrit instead)
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode198 components/safe_browsing_db/v4_store.cc:198: ApplyUpdateResult apply_update_result; On 2016/08/03 21:16:37, Nathan Parker wrote: > ...
4 years, 4 months ago (2016-08-03 22:44:13 UTC) #41
vakh (use Gerrit instead)
-pkasting +holte for histograms.
4 years, 4 months ago (2016-08-03 22:45:15 UTC) #43
vakh (use Gerrit instead)
Add Process{Full,Partial}Update methods to simplify ApplyUpdate and reduce nesting
4 years, 4 months ago (2016-08-03 23:40:34 UTC) #44
vakh (use Gerrit instead)
Tiny: Move the declaration of hash_prefix_map closer to use
4 years, 4 months ago (2016-08-03 23:52:27 UTC) #47
vakh (use Gerrit instead)
Tiny: Remove a comment. Club non-static functions together in .h
4 years, 4 months ago (2016-08-03 23:59:25 UTC) #50
Nathan Parker
https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode198 components/safe_browsing_db/v4_store.cc:198: ApplyUpdateResult apply_update_result; On 2016/08/03 22:44:13, vakh wrote: > On ...
4 years, 4 months ago (2016-08-04 00:01:09 UTC) #53
vakh (use Gerrit instead)
On 2016/08/04 00:01:09, Nathan Parker wrote: > https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc > File components/safe_browsing_db/v4_store.cc (right): > > https://codereview.chromium.org/2190233002/diff/60001/components/safe_browsing_db/v4_store.cc#newcode198 ...
4 years, 4 months ago (2016-08-04 00:02:49 UTC) #54
Steven Holte
histograms lgtm
4 years, 4 months ago (2016-08-04 01:10:30 UTC) #55
Nathan Parker
lgtm LG!
4 years, 4 months ago (2016-08-04 16:53:37 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2190233002/180001
4 years, 4 months ago (2016-08-04 18:29:40 UTC) #60
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 4 months ago (2016-08-04 18:37:56 UTC) #61
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 18:39:24 UTC) #63
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887
Cr-Commit-Position: refs/heads/master@{#409844}

Powered by Google App Engine
This is Rietveld 408576698