Index: chrome/browser/browser_process_impl.cc |
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc |
index 89ea85a4a76fcd9481f58481943f5d9d5e45b01d..dffef5db77b6e7dc0e435c58f79595c4d14abf72 100644 |
--- a/chrome/browser/browser_process_impl.cc |
+++ b/chrome/browser/browser_process_impl.cc |
@@ -935,8 +935,8 @@ void BrowserProcessImpl::CreateSafeBrowsingDetectionService() { |
bool BrowserProcessImpl::IsSafeBrowsingDetectionServiceEnabled() { |
// The safe browsing client-side detection is enabled only if the switch is |
// enabled and when safe browsing related stats is allowed to be collected. |
- return CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableClientSidePhishingDetection) && |
+ return !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableClientSidePhishingDetection) && |
resource_dispatcher_host()->safe_browsing_service() && |
resource_dispatcher_host()->safe_browsing_service()->CanReportStats(); |
} |