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

Issue 2406373003: Small: Delay checksum only on ReadFromDisk, not in FullUpdate cases (Closed)

Created:
4 years, 2 months ago by vakh (use Gerrit instead)
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delay checksum only on ReadFromDisk, not in FullUpdate cases Existing code was delaying checksum check when the |old_prefixes_map| was empty. However, this is also the case when we receive a FULL_UPDATE response from the server. We call: ProcessUpdate(HashPrefixMap(), response) So checking for an empty |old_prefixes_map| is an incorrect condition. This CL adds a flag: |delay_checksum_check| which is set to true only in ReadFromDisk method. BUG=543161, 651911 Committed: https://crrev.com/cfa3d9220463fcc9b19f3fe6c9c3a3a2a030b76e Cr-Commit-Position: refs/heads/master@{#425531}

Patch Set 1 #

Total comments: 3

Patch Set 2 : nparker@ review. Move delay_checksum_check into ProcessUpdate #

Patch Set 3 : rebase #

Patch Set 4 : Remove extra bool argument from MergeUpdate calls in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -41 lines) Patch
M components/safe_browsing_db/v4_store.h View 1 4 chunks +15 lines, -9 lines 0 comments Download
M components/safe_browsing_db/v4_store.cc View 1 7 chunks +30 lines, -25 lines 0 comments Download
M components/safe_browsing_db/v4_store_unittest.cc View 1 2 3 3 chunks +39 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-12 00:01:38 UTC) #3
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-12 00:01:47 UTC) #4
vakh (use Gerrit instead)
Ping.
4 years, 2 months ago (2016-10-14 18:09:54 UTC) #9
Nathan Parker
lgtm https://codereview.chromium.org/2406373003/diff/1/components/safe_browsing_db/v4_store.cc File components/safe_browsing_db/v4_store.cc (right): https://codereview.chromium.org/2406373003/diff/1/components/safe_browsing_db/v4_store.cc#newcode192 components/safe_browsing_db/v4_store.cc:192: ProcessUpdate(hash_prefix_map_old, response, false); nit: false /* delay_checksum check ...
4 years, 2 months ago (2016-10-14 23:49:38 UTC) #10
vakh (use Gerrit instead)
nparker@ review. Move delay_checksum_check into ProcessUpdate
4 years, 2 months ago (2016-10-15 00:24:21 UTC) #11
vakh (use Gerrit instead)
rebase
4 years, 2 months ago (2016-10-15 00:39:43 UTC) #16
vakh (use Gerrit instead)
Remove extra bool argument from MergeUpdate calls in tests
4 years, 2 months ago (2016-10-15 00:50:59 UTC) #21
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/2406373003/60001
4 years, 2 months ago (2016-10-15 00:51:17 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-15 01:44:24 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 01:47:19 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cfa3d9220463fcc9b19f3fe6c9c3a3a2a030b76e
Cr-Commit-Position: refs/heads/master@{#425531}

Powered by Google App Engine
This is Rietveld 408576698