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

Issue 611603002: Add the goog-unwanted-shavar list to a new SafeBrowsing PrefixSet. (Closed)

Created:
6 years, 2 months ago by gab
Modified:
5 years, 9 months ago
CC:
chromium-reviews, felt, robertshield, moheeb1, Scott Hess - ex-Googler
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add the goog-unwanted-shavar list to a new SafeBrowsing PrefixSet. The logic is the same as the logic for the existing PrefixSet for the malware and phishing lists. BUG=397754 TEST=Navigate to http://uwd.safebrowsingtest.com and confirm that the unwanted (harmful) software interstial is shown. Committed: https://crrev.com/5bebfd01ae0090f46d8018dbbd66db6412796da9 Cr-Commit-Position: refs/heads/master@{#303978}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : merge up to r302103 #

Patch Set 4 : robert's patchset 4 @ https://codereview.chromium.org/679893002 #

Patch Set 5 : Lots of additions + tests, still WIP #

Total comments: 10

Patch Set 6 : Split CheckBrowseUrl in two and let the client make both calls and expect two results #

Patch Set 7 : Only one SafeBrowsingCheck with merged prefix_hits and cache_hits #

Patch Set 8 : Clear FIXMEs #

Patch Set 9 : browser tests #

Total comments: 13

Patch Set 10 : Fix tests and add code for severest threat selection #

Patch Set 11 : review:mattm #

Patch Set 12 : make static_assert win-only for now #

Patch Set 13 : unwantedblhit => uwsblhit as per discussion with Noe for server-side logs #

Total comments: 11

Patch Set 14 : review:mattm #

Total comments: 4

Patch Set 15 : nits and cl format #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+932 lines, -463 lines) Patch
M chrome/browser/safe_browsing/database_manager.h View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +114 lines, -33 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +57 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 2 3 4 5 6 7 8 9 10 15 chunks +95 lines, -23 lines 2 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 31 chunks +176 lines, -71 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 38 chunks +291 lines, -283 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +152 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 2 3 4 3 chunks +17 lines, -10 lines 0 comments Download

Messages

Total messages: 36 (9 generated)
gab
Noe PTAL. Instead of creating a new client-side storage location, I added the prefixes to ...
6 years, 2 months ago (2014-09-26 20:35:39 UTC) #2
gab
ping? (or @mattm, is Noe away? Care to take a look, see initial message for ...
6 years, 2 months ago (2014-10-01 20:08:30 UTC) #4
mattm
On 2014/09/26 20:35:39, gab wrote: > Noe PTAL. > > Instead of creating a new ...
6 years, 2 months ago (2014-10-01 21:23:22 UTC) #5
Scott Hess - ex-Googler
On 2014/10/01 21:23:22, mattm wrote: > On 2014/09/26 20:35:39, gab wrote: > > Noe PTAL. ...
6 years, 2 months ago (2014-10-03 00:15:56 UTC) #6
gab
On 2014/10/03 00:15:56, Scott Hess - On Leave wrote: > On 2014/10/01 21:23:22, mattm wrote: ...
6 years, 2 months ago (2014-10-03 20:01:53 UTC) #7
mattm
On 2014/10/03 20:01:53, gab - On Leave wrote: > On 2014/10/03 00:15:56, Scott Hess - ...
6 years, 2 months ago (2014-10-03 20:37:51 UTC) #8
gab
On 2014/10/03 20:37:51, mattm wrote: > On 2014/10/03 20:01:53, gab - On Leave wrote: > ...
6 years, 2 months ago (2014-10-03 20:41:43 UTC) #9
noé
On 2014/10/03 20:41:43, gab - On Leave wrote: > On 2014/10/03 20:37:51, mattm wrote: > ...
6 years, 2 months ago (2014-10-03 21:52:30 UTC) #10
gab
Matt PTAL, this is still WIP, but I'd like your early feedback as we are ...
6 years, 1 month ago (2014-11-05 20:10:55 UTC) #15
mattm
Haven't looked through the whole thing yet, but one problem jumped out. https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc ...
6 years, 1 month ago (2014-11-06 01:06:11 UTC) #16
mattm
https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc#newcode479 chrome/browser/safe_browsing/database_manager.cc:479: checks_.insert(check); On 2014/11/06 01:06:11, mattm wrote: > This is ...
6 years, 1 month ago (2014-11-06 01:22:36 UTC) #17
mattm
https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/safe_browsing_database.h File chrome/browser/safe_browsing/safe_browsing_database.h (right): https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/safe_browsing_database.h#newcode517 chrome/browser/safe_browsing/safe_browsing_database.h:517: //FIXME get one of these for uwslist Given my ...
6 years, 1 month ago (2014-11-06 01:32:36 UTC) #18
gab
Thanks for the early feedback, reply/question below. Cheers, Gab https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc#newcode479 chrome/browser/safe_browsing/database_manager.cc:479: ...
6 years, 1 month ago (2014-11-06 17:47:47 UTC) #19
gab
PTAL at the latest patch set (6) and then we should chat in person about ...
6 years, 1 month ago (2014-11-07 00:12:09 UTC) #20
mattm
https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/611603002/diff/120001/chrome/browser/safe_browsing/database_manager.cc#newcode479 chrome/browser/safe_browsing/database_manager.cc:479: checks_.insert(check); On 2014/11/06 17:47:46, gab wrote: > On 2014/11/06 ...
6 years, 1 month ago (2014-11-07 00:27:09 UTC) #21
gab
Alright, I think patch set 8 is now a working solution! PTAL, I'll work on ...
6 years, 1 month ago (2014-11-07 18:54:17 UTC) #22
mattm
https://codereview.chromium.org/611603002/diff/220001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/611603002/diff/220001/chrome/browser/safe_browsing/database_manager.cc#newcode455 chrome/browser/safe_browsing/database_manager.cc:455: unwanted_cache_hits.end()); should avoid duplicates in the merged lists https://codereview.chromium.org/611603002/diff/220001/chrome/browser/safe_browsing/safe_browsing_database.cc ...
6 years, 1 month ago (2014-11-11 01:29:11 UTC) #24
gab
Alright, tests fixed and comments addressed. I'd say I'm finally confident that patch set 11 ...
6 years, 1 month ago (2014-11-11 23:39:12 UTC) #25
mattm
https://codereview.chromium.org/611603002/diff/220001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/611603002/diff/220001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode1335 chrome/browser/safe_browsing/safe_browsing_database.cc:1335: // |prefix_set|, there is no need to lock. On ...
6 years, 1 month ago (2014-11-12 03:24:31 UTC) #26
gab
Comments addressed, PTAL. Thanks, Gab https://codereview.chromium.org/611603002/diff/300001/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/611603002/diff/300001/chrome/browser/safe_browsing/database_manager.cc#newcode78 chrome/browser/safe_browsing/database_manager.cc:78: safe_browsing_util::ListType severest_threat = safe_browsing_util::INVALID; ...
6 years, 1 month ago (2014-11-12 16:05:08 UTC) #27
mattm
lgtm with nits https://codereview.chromium.org/611603002/diff/320001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/611603002/diff/320001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode258 chrome/browser/safe_browsing/safe_browsing_database.cc:258: void UpdateChunkRangesForBrowseLists(SafeBrowsingStore* store, I think the ...
6 years, 1 month ago (2014-11-12 22:26:57 UTC) #28
gab
Thanks, done, also applied some cl format. https://codereview.chromium.org/611603002/diff/320001/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): https://codereview.chromium.org/611603002/diff/320001/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode258 chrome/browser/safe_browsing/safe_browsing_database.cc:258: void UpdateChunkRangesForBrowseLists(SafeBrowsingStore* ...
6 years, 1 month ago (2014-11-13 02:45:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611603002/340001
6 years, 1 month ago (2014-11-13 02:58:54 UTC) #31
commit-bot: I haz the power
Committed patchset #15 (id:340001)
6 years, 1 month ago (2014-11-13 03:43:43 UTC) #32
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/5bebfd01ae0090f46d8018dbbd66db6412796da9 Cr-Commit-Position: refs/heads/master@{#303978}
6 years, 1 month ago (2014-11-13 03:44:23 UTC) #33
Alexei Svitkine (slow)
https://codereview.chromium.org/611603002/diff/340001/chrome/browser/safe_browsing/safe_browsing_database.h File chrome/browser/safe_browsing/safe_browsing_database.h (right): https://codereview.chromium.org/611603002/diff/340001/chrome/browser/safe_browsing/safe_browsing_database.h#newcode275 chrome/browser/safe_browsing/safe_browsing_database.h:275: FAILURE_UNWANTED_SOFTWARE_DATABASE_UPDATE_BEGIN, I think you also need to update histograms.xml ...
5 years, 9 months ago (2015-02-27 21:37:54 UTC) #35
gab
5 years, 9 months ago (2015-03-02 17:13:36 UTC) #36
Message was sent while issue was closed.
https://codereview.chromium.org/611603002/diff/340001/chrome/browser/safe_bro...
File chrome/browser/safe_browsing/safe_browsing_database.h (right):

https://codereview.chromium.org/611603002/diff/340001/chrome/browser/safe_bro...
chrome/browser/safe_browsing/safe_browsing_database.h:275:
FAILURE_UNWANTED_SOFTWARE_DATABASE_UPDATE_BEGIN,
On 2015/02/27 21:37:54, Alexei Svitkine wrote:
> I think you also need to update histograms.xml with these.

Indeed, thanks: https://codereview.chromium.org/968253002/

Powered by Google App Engine
This is Rietveld 408576698