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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 8417040: Measure how often downloaded executables match the download whitelist. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 3f99699dd9db9b247be5d74b60d75dd478c8d68f..c8a4ea474736ee5885cda99917f0d846c97a6b35 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -913,8 +913,11 @@ void SafeBrowsingService::Start() {
!cmdline->HasSwitch(switches::kDisableClientSidePhishingDetection);
#endif
- enable_download_whitelist_ = cmdline->HasSwitch(
- switches::kEnableImprovedDownloadProtection);
+ // TODO(noelutz): remove this boolean variable since it should always be true
+ // if SafeBrowsing is enabled. Unfortunately, we have no test data for this
+ // list right now. This means that we need to be able to disable this list
+ // for the SafeBrowsing test to pass.
+ enable_download_whitelist_ = enable_csd_whitelist_;
Brian Ryner 2011/10/28 23:00:59 This will cause the --disable-client-side-phishing
noelutz 2011/10/28 23:11:24 Yes. That's intentional. We need a way to disabl
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698