summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_service.cc')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_service.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index c8f1851..256b0e1 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -169,7 +169,9 @@ SafeBrowsingService::SafeBrowsingService()
#if !defined(OS_CHROMEOS)
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableClientSidePhishingDetection) &&
- CanReportStats()) {
+ (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSanitizedClientSidePhishingDetection) ||
+ CanReportStats())) {
csd_service_.reset(
safe_browsing::ClientSideDetectionService::Create(
g_browser_process->system_request_context()));
@@ -899,7 +901,10 @@ void SafeBrowsingService::Start() {
#else
enable_csd_whitelist_ =
(!cmdline->HasSwitch(switches::kDisableClientSidePhishingDetection) &&
- local_state && local_state->GetBoolean(prefs::kMetricsReportingEnabled));
+ (cmdline->HasSwitch(
+ switches::kEnableSanitizedClientSidePhishingDetection) ||
+ (local_state &&
+ local_state->GetBoolean(prefs::kMetricsReportingEnabled))));
#endif
BrowserThread::PostTask(