Index: chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc |
diff --git a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc |
index 7f0a1c4b6049b24a0a82cccbde9bdc64307bba34..95553fc2ce20d72602bc026fce46b58d0ba08a78 100644 |
--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc |
+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc |
@@ -21,6 +21,7 @@ |
#include "chrome/test/base/testing_browser_process.h" |
#include "chrome/test/base/testing_profile.h" |
#include "chrome/test/base/testing_profile_manager.h" |
+#include "components/safe_browsing_db/safe_browsing_prefs.h" |
#include "components/syncable_prefs/testing_pref_service_syncable.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "content/public/test/test_utils.h" |
@@ -150,7 +151,7 @@ class ExtensionDataCollectionTest : public testing::Test { |
chrome::RegisterUserProfilePrefs(prefs->registry()); |
prefs->SetBoolean(prefs::kSafeBrowsingEnabled, |
safe_browsing_opt_in == SAFE_BROWSING_OPT_IN); |
- prefs->SetBoolean(prefs::kSafeBrowsingExtendedReportingEnabled, |
+ prefs->SetBoolean(GetExtendedReportingPrefName(), |
safe_browsing_opt_in == SAFE_BROWSING_OPT_IN); |
TestingProfile* profile = profile_manager_->CreateTestingProfile( |
profile_name, std::move(prefs), |