Index: chrome/browser/safe_browsing/client_side_detection_service.cc |
diff --git a/chrome/browser/safe_browsing/client_side_detection_service.cc b/chrome/browser/safe_browsing/client_side_detection_service.cc |
index dbc79b355a7b985a2989c0fdc9a7aeb87352d98b..b6ffc6663930ce7cf99d52826fd9bfbe05b44411 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_service.cc |
+++ b/chrome/browser/safe_browsing/client_side_detection_service.cc |
@@ -25,6 +25,7 @@ |
#include "chrome/common/safe_browsing/safebrowsing_messages.h" |
#include "components/data_use_measurement/core/data_use_user_data.h" |
#include "components/prefs/pref_service.h" |
+#include "components/safe_browsing_db/safe_browsing_prefs.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
@@ -227,8 +228,7 @@ void ClientSideDetectionService::SendModelToProcess( |
Profile* profile = Profile::FromBrowserContext(process->GetBrowserContext()); |
std::string model; |
if (profile->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled)) { |
- if (profile->GetPrefs()->GetBoolean( |
- prefs::kSafeBrowsingExtendedReportingEnabled)) { |
+ if (IsExtendedReportingEnabled(*profile->GetPrefs())) { |
DVLOG(2) << "Sending phishing model " << model_loader_extended_->name() |
<< " to RenderProcessHost @" << process; |
model = model_loader_extended_->model_str(); |