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

Issue 7863006: Add a whitelist for the new binary download protection. (Closed)

Created:
9 years, 3 months ago by noelutz
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a whitelist for the new binary download protection. BUG=None TEST=SafeBrowsingDatabaseTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102158

Patch Set 1 #

Patch Set 2 : Test fixes #

Total comments: 2

Patch Set 3 : Add comment to describe why we use list id 6 and not 5. #

Total comments: 11

Patch Set 4 : Remove unnecessary special casing for whitelists. #

Patch Set 5 : Address Brian's comment. #

Total comments: 3

Patch Set 6 : Replaced pref with a flag. #

Total comments: 4

Patch Set 7 : Address Matt's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -120 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_database.h View 11 chunks +68 lines, -36 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 3 18 chunks +143 lines, -56 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 11 chunks +122 lines, -26 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
noelutz
9 years, 3 months ago (2011-09-09 20:30:53 UTC) #1
panayiotis
fyi http://codereview.chromium.org/7863006/diff/12/chrome/common/pref_names.h File chrome/common/pref_names.h (right): http://codereview.chromium.org/7863006/diff/12/chrome/common/pref_names.h#newcode108 chrome/common/pref_names.h:108: extern const char kSafeBrowsingDownloadProtectionEnabled[]; kSafeBrowsingDownloadProtectionOptinEnabled ? To differentiate ...
9 years, 3 months ago (2011-09-09 20:33:35 UTC) #2
noelutz
renamed. please take another look. thanks, noe. On 2011/09/09 20:33:35, panayiotis wrote: > fyi > ...
9 years, 3 months ago (2011-09-10 00:41:16 UTC) #3
mattm
http://codereview.chromium.org/7863006/diff/15/chrome/browser/safe_browsing/safe_browsing_util.h File chrome/browser/safe_browsing/safe_browsing_util.h (right): http://codereview.chromium.org/7863006/diff/15/chrome/browser/safe_browsing/safe_browsing_util.h#newcode279 chrome/browser/safe_browsing/safe_browsing_util.h:279: DOWNLOADWHITELIST = 6, What happened to 5?
9 years, 3 months ago (2011-09-10 01:12:48 UTC) #4
noelutz
http://codereview.chromium.org/7863006/diff/15/chrome/browser/safe_browsing/safe_browsing_util.h File chrome/browser/safe_browsing/safe_browsing_util.h (right): http://codereview.chromium.org/7863006/diff/15/chrome/browser/safe_browsing/safe_browsing_util.h#newcode279 chrome/browser/safe_browsing/safe_browsing_util.h:279: DOWNLOADWHITELIST = 6, On 2011/09/10 01:12:48, mattm wrote: > ...
9 years, 3 months ago (2011-09-10 01:24:20 UTC) #5
mattm
http://codereview.chromium.org/7863006/diff/1016/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode592 chrome/browser/safe_browsing/safe_browsing_database.cc:592: WhitelistEverything(&download_whitelist_); Hm, does this mean that if the whitelist ...
9 years, 3 months ago (2011-09-10 01:55:33 UTC) #6
noelutz
http://codereview.chromium.org/7863006/diff/1016/chrome/browser/safe_browsing/safe_browsing_database.cc File chrome/browser/safe_browsing/safe_browsing_database.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/safe_browsing/safe_browsing_database.cc#newcode592 chrome/browser/safe_browsing/safe_browsing_database.cc:592: WhitelistEverything(&download_whitelist_); On 2011/09/10 01:55:33, mattm wrote: > Hm, does ...
9 years, 3 months ago (2011-09-10 02:30:56 UTC) #7
mattm
LGTM
9 years, 3 months ago (2011-09-10 02:39:42 UTC) #8
Brian Ryner
Looks nice, just a few questions. http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc#newcode130 chrome/browser/profiles/profile.cc:130: PrefService::UNSYNCABLE_PREF); Is there ...
9 years, 3 months ago (2011-09-12 21:45:18 UTC) #9
noelutz
http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc#newcode130 chrome/browser/profiles/profile.cc:130: PrefService::UNSYNCABLE_PREF); On 2011/09/12 21:45:18, Brian Ryner wrote: > Is ...
9 years, 3 months ago (2011-09-12 22:09:30 UTC) #10
Brian Ryner
http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc#newcode130 chrome/browser/profiles/profile.cc:130: PrefService::UNSYNCABLE_PREF); On 2011/09/12 22:09:30, noelutz wrote: > On 2011/09/12 ...
9 years, 3 months ago (2011-09-12 22:43:27 UTC) #11
noelutz
http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): http://codereview.chromium.org/7863006/diff/1016/chrome/browser/profiles/profile.cc#newcode130 chrome/browser/profiles/profile.cc:130: PrefService::UNSYNCABLE_PREF); On 2011/09/12 22:43:27, Brian Ryner wrote: > On ...
9 years, 3 months ago (2011-09-12 22:55:12 UTC) #12
Brian Ryner
lgtm
9 years, 3 months ago (2011-09-12 23:11:17 UTC) #13
mattm
http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode918 chrome/browser/safe_browsing/safe_browsing_service.cc:918: pref_value); Oh, thinking about this a bit harder, this ...
9 years, 3 months ago (2011-09-13 00:29:02 UTC) #14
noelutz
http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode918 chrome/browser/safe_browsing/safe_browsing_service.cc:918: pref_value); On 2011/09/13 00:29:02, mattm wrote: > Oh, thinking ...
9 years, 3 months ago (2011-09-13 20:35:39 UTC) #15
mattm
http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode918 chrome/browser/safe_browsing/safe_browsing_service.cc:918: pref_value); On 2011/09/13 20:35:39, noelutz wrote: > On 2011/09/13 ...
9 years, 3 months ago (2011-09-14 01:15:18 UTC) #16
noelutz
On 2011/09/14 01:15:18, mattm wrote: > http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc > File chrome/browser/safe_browsing/safe_browsing_service.cc (right): > > http://codereview.chromium.org/7863006/diff/8002/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode918 > ...
9 years, 3 months ago (2011-09-19 17:21:02 UTC) #17
mattm
http://codereview.chromium.org/7863006/diff/16001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/7863006/diff/16001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode912 chrome/browser/safe_browsing/safe_browsing_service.cc:912: enable_download_whitelist_ = switches::kEnableImprovedDownloadProtection; cmdline->HasSwitch(...) ? http://codereview.chromium.org/7863006/diff/16001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): ...
9 years, 3 months ago (2011-09-19 21:27:36 UTC) #18
noelutz
Argh! So sorry about this. http://codereview.chromium.org/7863006/diff/16001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): http://codereview.chromium.org/7863006/diff/16001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode912 chrome/browser/safe_browsing/safe_browsing_service.cc:912: enable_download_whitelist_ = switches::kEnableImprovedDownloadProtection; On ...
9 years, 3 months ago (2011-09-19 21:41:43 UTC) #19
mattm
LGTM
9 years, 3 months ago (2011-09-19 21:46:43 UTC) #20
commit-bot: I haz the power
9 years, 3 months ago (2011-09-21 20:28:43 UTC) #21
Change committed as 102158

Powered by Google App Engine
This is Rietveld 408576698