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

Issue 2349603003: V4LDBM: Get response from GetHashManager, detect severest result (Closed)

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

Description

V4LDBM: Get response from GetHashManager, detect severest result Also, some DCHECKS for ensuring methods run on expected threads. BUG=543161 Committed: https://crrev.com/63654595ed31f9b5584de13aaee56c671bca7cf0 Cr-Commit-Position: refs/heads/master@{#419865}

Patch Set 1 : Remove DVLOG. Move severity methods into anon namespace. #

Patch Set 2 : Add test for GetSeverestThreatTypeAndMetadata #

Total comments: 17

Patch Set 3 : Incorporate nparker@'s feedback #

Total comments: 6

Patch Set 4 : Incorporate nparker@'s feedback #

Patch Set 5 : git pull #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -20 lines) Patch
M components/safe_browsing_db/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager.cc View 1 2 3 4 6 chunks +7 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_get_hash_protocol_manager_unittest.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.h View 1 2 3 3 chunks +68 lines, -6 lines 1 comment Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 6 chunks +123 lines, -9 lines 4 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 1 chunk +26 lines, -0 lines 3 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (25 generated)
vakh (use Gerrit instead)
git pull and remove a DVLOG
4 years, 3 months ago (2016-09-19 21:25:25 UTC) #5
vakh (use Gerrit instead)
Add test for GetSeverestThreatTypeAndMetadata and add store for UwS
4 years, 3 months ago (2016-09-19 23:54:37 UTC) #9
vakh (use Gerrit instead)
https://codereview.chromium.org/2349603003/diff/40001/components/safe_browsing_db/v4_local_database_manager.h File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2349603003/diff/40001/components/safe_browsing_db/v4_local_database_manager.h#newcode145 components/safe_browsing_db/v4_local_database_manager.h:145: // // |full_hash_infos|. TODO(vakh): Indentation.
4 years, 3 months ago (2016-09-19 23:56:35 UTC) #12
vakh (use Gerrit instead)
4 years, 3 months ago (2016-09-20 00:18:09 UTC) #14
vakh (use Gerrit instead)
Remove store for UwS. Will add that as a separate CL.
4 years, 3 months ago (2016-09-20 00:28:22 UTC) #15
vakh (use Gerrit instead)
Nits
4 years, 3 months ago (2016-09-20 00:41:37 UTC) #18
Nathan Parker
Looks pretty good, with some nits and questions about naming. https://codereview.chromium.org/2349603003/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/2349603003/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc#newcode29 ...
4 years, 3 months ago (2016-09-20 17:51:09 UTC) #25
vakh (use Gerrit instead)
Incorporate nparker@'s feedback
4 years, 3 months ago (2016-09-20 18:20:47 UTC) #26
vakh (use Gerrit instead)
Thanks for the quick review. PTAL. https://codereview.chromium.org/2349603003/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/2349603003/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc#newcode29 components/safe_browsing_db/v4_local_database_manager.cc:29: // GetSBThreatTypeForList On ...
4 years, 3 months ago (2016-09-20 18:21:17 UTC) #29
Nathan Parker
lgtm https://codereview.chromium.org/2349603003/diff/100001/components/safe_browsing_db/v4_local_database_manager.h File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2349603003/diff/100001/components/safe_browsing_db/v4_local_database_manager.h#newcode42 components/safe_browsing_db/v4_local_database_manager.h:42: // synchronously. Can you add a todo or ...
4 years, 3 months ago (2016-09-20 18:43:38 UTC) #30
vakh (use Gerrit instead)
Incorporate nparker@'s feedback
4 years, 3 months ago (2016-09-20 20:29:10 UTC) #33
vakh (use Gerrit instead)
git pull
4 years, 3 months ago (2016-09-20 20:49:48 UTC) #34
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/2349603003/140001
4 years, 3 months ago (2016-09-20 20:50:32 UTC) #37
vakh (use Gerrit instead)
https://codereview.chromium.org/2349603003/diff/100001/components/safe_browsing_db/v4_local_database_manager.h File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2349603003/diff/100001/components/safe_browsing_db/v4_local_database_manager.h#newcode42 components/safe_browsing_db/v4_local_database_manager.h:42: // synchronously. On 2016/09/20 18:43:38, Nathan Parker wrote: > ...
4 years, 3 months ago (2016-09-20 20:51:28 UTC) #38
Scott Hess - ex-Googler
https://codereview.chromium.org/2349603003/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/2349603003/diff/80001/components/safe_browsing_db/v4_local_database_manager.cc#newcode38 components/safe_browsing_db/v4_local_database_manager.cc:38: if (list_id == GetChromeUrlApiId()) { On 2016/09/20 17:51:09, Nathan ...
4 years, 3 months ago (2016-09-20 21:55:56 UTC) #39
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 3 months ago (2016-09-20 22:00:11 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/63654595ed31f9b5584de13aaee56c671bca7cf0 Cr-Commit-Position: refs/heads/master@{#419865}
4 years, 3 months ago (2016-09-20 22:02:51 UTC) #42
vakh (use Gerrit instead)
Thanks for the review, Scott. I've uploaded a new CL to address you comments here: ...
4 years, 3 months ago (2016-09-21 17:43:40 UTC) #43
Scott Hess - ex-Googler
4 years, 3 months ago (2016-09-21 19:15:52 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2349603003/diff/140001/components/safe_browsi...
File components/safe_browsing_db/v4_local_database_manager_unittest.cc (right):

https://codereview.chromium.org/2349603003/diff/140001/components/safe_browsi...
components/safe_browsing_db/v4_local_database_manager_unittest.cc:158:
std::reverse(std::begin(fhis), std::end(fhis));
On 2016/09/21 17:43:40, vakh (Varun Khaneja) wrote:
> On 2016/09/20 21:55:56, Scott Hess wrote:
> > I may not understand something, here, but a one-element list is the same
> > forwards and backwards!
> 
> The list has two elements: fhi_malware, fhi_api

I swear, I checked a couple times before making the comment, and it only had one
element.  But looking here, it clearly has more than one.  *Shrug*.  Guide me
gently back to my desk if you find me wandering around.

Powered by Google App Engine
This is Rietveld 408576698