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

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

Issue 7863006: Add a whitelist for the new binary download protection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced pref with a flag. Created 9 years, 3 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 d640f1c3ffb52bfc71203a2eaea330a7f0b05925..bf97c0a4ed672208af2458f0a8b0b1159dfa9216 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -161,6 +161,7 @@ SafeBrowsingService::SafeBrowsingService()
enabled_(false),
enable_download_protection_(false),
enable_csd_whitelist_(false),
+ enable_download_whitelist_(false),
update_in_progress_(false),
database_update_in_progress_(false),
closing_database_(false),
@@ -687,7 +688,8 @@ SafeBrowsingDatabase* SafeBrowsingService::GetDatabase() {
SafeBrowsingDatabase* database =
SafeBrowsingDatabase::Create(enable_download_protection_,
- enable_csd_whitelist_);
+ enable_csd_whitelist_,
+ enable_download_whitelist_);
database->Init(path);
{
@@ -907,6 +909,8 @@ void SafeBrowsingService::Start() {
local_state->GetBoolean(prefs::kMetricsReportingEnabled))));
#endif
+ enable_download_whitelist_ = switches::kEnableImprovedDownloadProtection;
mattm 2011/09/19 21:27:36 cmdline->HasSwitch(...) ?
noelutz 2011/09/19 21:41:43 Duh, so sorry about that. I must have been absent
+
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
NewRunnableMethod(

Powered by Google App Engine
This is Rietveld 408576698