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

Issue 1673733002: Support new Safe Browsing list "goog-badresource-shavar" in SafeBrowsingDatabase. (Closed)

Created:
4 years, 10 months ago by veranika
Modified:
4 years, 1 month ago
CC:
chromium-reviews, grt+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support new Safe Browsing list "goog-badresource-shavar" in SafeBrowsingDatabase. Load the list from servers. Check URLs for presence in the database. BUG=582204 Committed: https://crrev.com/fbe7992cbb2da2bf1f129c3e2b6ca7271da86dc8 Cr-Commit-Position: refs/heads/master@{#376460}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Check resource URLs in database manager #

Total comments: 14

Patch Set 3 : Addressed comments #

Total comments: 5

Patch Set 4 : s/GetThreatLevel/GetThreatSeverity/ #

Patch Set 5 : Fix RemoteSafeBrowsingDatabaseManager #

Patch Set 6 : git rebase-update #

Patch Set 7 : Fix typo #

Patch Set 8 : Fix reaching end of non-void function #

Patch Set 9 : Post-merge test fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -56 lines) Patch
M chrome/browser/safe_browsing/local_database_manager.h View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.cc View 1 2 3 4 5 6 7 10 chunks +98 lines, -43 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager_unittest.cc View 1 2 6 chunks +64 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 4 5 7 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 5 15 chunks +67 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +64 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 chunks +78 lines, -0 lines 0 comments Download
M components/safe_browsing_db/database_manager.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M components/safe_browsing_db/remote_database_manager.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/remote_database_manager.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/safe_browsing_db/test_database_manager.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing_db/test_database_manager.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M components/safe_browsing_db/util.h View 1 2 3 4 5 3 chunks +10 lines, -2 lines 0 comments Download
M components/safe_browsing_db/util.cc View 1 2 3 4 5 3 chunks +7 lines, -2 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
veranika
rkaplow: could you please review the histograms.xml change? nparker: could you please review everything but ...
4 years, 10 months ago (2016-02-05 20:56:12 UTC) #4
rkaplow
lgtm https://codereview.chromium.org/1673733002/diff/1/chrome/browser/safe_browsing/local_database_manager_unittest.cc File chrome/browser/safe_browsing/local_database_manager_unittest.cc (right): https://codereview.chromium.org/1673733002/diff/1/chrome/browser/safe_browsing/local_database_manager_unittest.cc#newcode15 chrome/browser/safe_browsing/local_database_manager_unittest.cc:15: unneeded?
4 years, 10 months ago (2016-02-05 21:21:29 UTC) #5
Nathan Parker
https://codereview.chromium.org/1673733002/diff/20001/chrome/browser/safe_browsing/local_database_manager.cc File chrome/browser/safe_browsing/local_database_manager.cc (right): https://codereview.chromium.org/1673733002/diff/20001/chrome/browser/safe_browsing/local_database_manager.cc#newcode98 chrome/browser/safe_browsing/local_database_manager.cc:98: case IPBLACKLIST: Now that there are three levels, how ...
4 years, 10 months ago (2016-02-16 21:42:00 UTC) #6
veranika
https://codereview.chromium.org/1673733002/diff/1/chrome/browser/safe_browsing/local_database_manager_unittest.cc File chrome/browser/safe_browsing/local_database_manager_unittest.cc (right): https://codereview.chromium.org/1673733002/diff/1/chrome/browser/safe_browsing/local_database_manager_unittest.cc#newcode15 chrome/browser/safe_browsing/local_database_manager_unittest.cc:15: On 2016/02/05 21:21:29, rkaplow wrote: > unneeded? Done. https://codereview.chromium.org/1673733002/diff/20001/chrome/browser/safe_browsing/local_database_manager.cc ...
4 years, 10 months ago (2016-02-17 15:37:54 UTC) #7
Nathan Parker
lgtm https://codereview.chromium.org/1673733002/diff/40001/chrome/browser/safe_browsing/local_database_manager.cc File chrome/browser/safe_browsing/local_database_manager.cc (right): https://codereview.chromium.org/1673733002/diff/40001/chrome/browser/safe_browsing/local_database_manager.cc#newcode79 chrome/browser/safe_browsing/local_database_manager.cc:79: int GetThreatLevel(ListType threat) { How about GetThreatSeverity? https://codereview.chromium.org/1673733002/diff/40001/chrome/browser/safe_browsing/local_database_manager.cc#newcode96 ...
4 years, 10 months ago (2016-02-17 16:00:40 UTC) #8
veranika
Resolved comments and rebase-updated the patch. https://codereview.chromium.org/1673733002/diff/40001/chrome/browser/safe_browsing/local_database_manager.cc File chrome/browser/safe_browsing/local_database_manager.cc (right): https://codereview.chromium.org/1673733002/diff/40001/chrome/browser/safe_browsing/local_database_manager.cc#newcode79 chrome/browser/safe_browsing/local_database_manager.cc:79: int GetThreatLevel(ListType threat) ...
4 years, 10 months ago (2016-02-18 14:53:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673733002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673733002/160001
4 years, 10 months ago (2016-02-19 15:24:27 UTC) #12
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-19 16:58:19 UTC) #14
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/fbe7992cbb2da2bf1f129c3e2b6ca7271da86dc8 Cr-Commit-Position: refs/heads/master@{#376460}
4 years, 10 months ago (2016-02-19 16:59:27 UTC) #16
igorcov
https://codereview.chromium.org/1673733002/diff/160001/components/safe_browsing_db/util.cc File components/safe_browsing_db/util.cc (right): https://codereview.chromium.org/1673733002/diff/160001/components/safe_browsing_db/util.cc#newcode126 components/safe_browsing_db/util.cc:126: *list = kResourceBlacklist; The break statement was stolen from ...
4 years, 1 month ago (2016-10-26 11:37:34 UTC) #18
grt (UTC plus 2)
4 years, 1 month ago (2016-10-26 11:44:49 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/1673733002/diff/160001/components/safe_browsi...
File components/safe_browsing_db/util.cc (right):

https://codereview.chromium.org/1673733002/diff/160001/components/safe_browsi...
components/safe_browsing_db/util.cc:126: *list = kResourceBlacklist;
On 2016/10/26 11:37:34, igorcov wrote:
> The break statement was stolen from above and now MODULEWHITELIST is
impossible
> to happen

fix out for review in https://codereview.chromium.org/2451163002/

Powered by Google App Engine
This is Rietveld 408576698