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

Issue 2225613002: V4LDM: Add check for HashPrefix match and some tests (Closed)

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

Description

V4LocalDatabaseManager: Add check for HashPrefix match from V4Database and tests for CheckBrowseUrl and some of the other trivial methods. TODOs: 1. Queue checks if the DB isn't ready yet. 2. Send full hash requests if the prefix is found in the DB. BUG=543161 Committed: https://crrev.com/30ae1c8a8f9f169652afe6feb85453201a9e489f Cr-Commit-Position: refs/heads/master@{#413031}

Patch Set 1 #

Patch Set 2 : Add test for disabled v4_local_db_manager_ #

Patch Set 3 : rebase #

Total comments: 18

Patch Set 4 : Remove QueuedChecks. CR feedback (nparker@ and shess@) #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : Move declaration of stores_to_look close to site of use. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -5 lines) Patch
M components/safe_browsing_db/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/v4_database.h View 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 4 5 2 chunks +30 lines, -4 lines 0 comments Download
A components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 2 3 1 chunk +136 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (29 generated)
vakh (use Gerrit instead)
Add tests for CheckBrowseUrl and mocking framework
4 years, 4 months ago (2016-08-08 21:31:14 UTC) #5
vakh (use Gerrit instead)
Remove reset_success_ and SetupLocalDatabaseManager in SetUp
4 years, 4 months ago (2016-08-08 23:30:15 UTC) #6
vakh (use Gerrit instead)
Add test for disabled v4_local_db_manager_
4 years, 4 months ago (2016-08-08 23:50:49 UTC) #13
vakh (use Gerrit instead)
rebase
4 years, 4 months ago (2016-08-11 21:48:01 UTC) #18
Nathan Parker
(I haven't gotten through the test code yet). https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc#newcode162 components/safe_browsing_db/v4_local_database_manager.cc:162: DCHECK((matched_stores.empty() ...
4 years, 4 months ago (2016-08-15 19:06:41 UTC) #23
Scott Hess - ex-Googler
https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.h File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.h#newcode62 components/safe_browsing_db/v4_local_database_manager.h:62: struct QueuedCheck { On 2016/08/15 19:06:41, Nathan Parker wrote: ...
4 years, 4 months ago (2016-08-15 20:57:40 UTC) #24
vakh (use Gerrit instead)
Remove QueuedChecks. CR feedback (nparker@ and shess@)
4 years, 4 months ago (2016-08-17 18:22:36 UTC) #25
vakh (use Gerrit instead)
Thanks for the review. PTAL. https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc#newcode162 components/safe_browsing_db/v4_local_database_manager.cc:162: DCHECK((matched_stores.empty() && matched_hash_prefixes.empty()) || ...
4 years, 4 months ago (2016-08-17 18:23:06 UTC) #27
vakh (use Gerrit instead)
rebase
4 years, 4 months ago (2016-08-17 18:28:04 UTC) #29
vakh (use Gerrit instead)
rebase
4 years, 4 months ago (2016-08-17 19:07:50 UTC) #30
Scott Hess - ex-Googler
lgtm https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager_unittest.cc File components/safe_browsing_db/v4_local_database_manager_unittest.cc (right): https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode120 components/safe_browsing_db/v4_local_database_manager_unittest.cc:120: v4_local_database_manager_->CheckBrowseUrl(GURL("http://a/"), nullptr)); On 2016/08/17 18:23:06, vakh wrote: > ...
4 years, 4 months ago (2016-08-17 23:04:39 UTC) #32
vakh (use Gerrit instead)
Move declaration of stores_to_look close to site of use.
4 years, 4 months ago (2016-08-17 23:47:55 UTC) #33
vakh (use Gerrit instead)
Thanks for the lgtm, shess@. https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager_unittest.cc File components/safe_browsing_db/v4_local_database_manager_unittest.cc (right): https://codereview.chromium.org/2225613002/diff/80001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode120 components/safe_browsing_db/v4_local_database_manager_unittest.cc:120: v4_local_database_manager_->CheckBrowseUrl(GURL("http://a/"), nullptr)); On 2016/08/17 ...
4 years, 4 months ago (2016-08-17 23:51:07 UTC) #36
Nathan Parker
lgtm [though shess's is sufficient]
4 years, 4 months ago (2016-08-19 00:15:45 UTC) #39
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/2225613002/160001
4 years, 4 months ago (2016-08-19 00:18:23 UTC) #42
vakh (use Gerrit instead)
+ francois@mozilla.com
4 years, 4 months ago (2016-08-19 00:36:47 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 4 months ago (2016-08-19 02:28:19 UTC) #45
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 02:32:59 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/30ae1c8a8f9f169652afe6feb85453201a9e489f
Cr-Commit-Position: refs/heads/master@{#413031}

Powered by Google App Engine
This is Rietveld 408576698