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

Issue 2680163002: S: GetThreatSeverity should handle the case of CheckResourceUrl. (Closed)

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

Description

GetThreatSeverity should handle the case of CheckResourceUrl. Added the case statement and a unit test that forces a full hash match which causes this method to get executed. BUG=689672 Review-Url: https://codereview.chromium.org/2680163002 Cr-Commit-Position: refs/heads/master@{#448885} Committed: https://chromium.googlesource.com/chromium/src/+/4e2788493f4bef375b52e78e5a9ee38f2d92b191

Patch Set 1 #

Patch Set 2 : rebase and fix compile-time errors caused by rebase #

Total comments: 12

Patch Set 3 : nparker@'s review #

Total comments: 5

Patch Set 4 : shess@'s review + revert explicit cases #

Patch Set 5 : Nit: Remove extra empty line #

Patch Set 6 : Nit: s/Time::Time/Time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -17 lines) Patch
M components/safe_browsing_db/v4_local_database_manager.cc View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 2 3 4 5 10 chunks +57 lines, -17 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
vakh (use Gerrit instead)
Please review this small patch soon. I'd need to get this merged into M57 so ...
3 years, 10 months ago (2017-02-07 22:33:57 UTC) #3
vakh (use Gerrit instead)
rebase and fix compile-time errors caused by rebase
3 years, 10 months ago (2017-02-07 22:38:26 UTC) #5
Nathan Parker
lgtm https://codereview.chromium.org/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode94 components/safe_browsing_db/v4_local_database_manager.cc:94: default: How about replacing the default with all ...
3 years, 10 months ago (2017-02-07 22:59:59 UTC) #8
vakh (use Gerrit instead)
nparker@'s review
3 years, 10 months ago (2017-02-07 23:11:08 UTC) #9
vakh (use Gerrit instead)
Thanks for the quick review. https://codereview.chromium.org/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode94 components/safe_browsing_db/v4_local_database_manager.cc:94: default: On 2017/02/07 22:59:58, ...
3 years, 10 months ago (2017-02-07 23:11:21 UTC) #11
Scott Hess - ex-Googler
LGTM. https://codereview.chromium.org/2680163002/diff/20001/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/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode182 components/safe_browsing_db/v4_local_database_manager_unittest.cc:182: DCHECK(threat_type != SB_THREAT_TYPE_SAFE || threat_hash.empty()); On 2017/02/07 23:11:21, ...
3 years, 10 months ago (2017-02-07 23:37:51 UTC) #13
vakh (use Gerrit instead)
shess@'s review + revert explicit cases
3 years, 10 months ago (2017-02-07 23:51:08 UTC) #16
vakh (use Gerrit instead)
https://codereview.chromium.org/2680163002/diff/20001/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/2680163002/diff/20001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode182 components/safe_browsing_db/v4_local_database_manager_unittest.cc:182: DCHECK(threat_type != SB_THREAT_TYPE_SAFE || threat_hash.empty()); On 2017/02/07 23:37:51, Scott ...
3 years, 10 months ago (2017-02-07 23:51:22 UTC) #18
vakh (use Gerrit instead)
Nit: Remove extra empty line
3 years, 10 months ago (2017-02-07 23:52:32 UTC) #20
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/2680163002/80001
3 years, 10 months ago (2017-02-07 23:52:55 UTC) #24
Scott Hess - ex-Googler
still lgtm https://codereview.chromium.org/2680163002/diff/40001/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/2680163002/diff/40001/components/safe_browsing_db/v4_local_database_manager_unittest.cc#newcode459 components/safe_browsing_db/v4_local_database_manager_unittest.cc:459: ScopedFakeGetHashProtocolManagerFactory pin(FullHashInfos({})); On 2017/02/07 23:51:22, vakh (Varun ...
3 years, 10 months ago (2017-02-07 23:55:42 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/227790)
3 years, 10 months ago (2017-02-08 00:21:23 UTC) #27
vakh (use Gerrit instead)
Nit: s/Time::Time/Time
3 years, 10 months ago (2017-02-08 02:19:53 UTC) #28
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/2680163002/100001
3 years, 10 months ago (2017-02-08 02:20:46 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 03:12:35 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4e2788493f4bef375b52e78e5a9e...

Powered by Google App Engine
This is Rietveld 408576698