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

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

Issue 2418813002: [Reland] Refactoring of SBER preference usage (Closed)
Patch Set: Sync Created 4 years, 2 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/download_protection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
index 3c82ab3e6e00eba57cb6edd910da5b03c35b5e1f..bedcbbe85ea8e316f4f0ed0bdbf8960a34da2c6e 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -34,7 +34,6 @@
#include "chrome/browser/safe_browsing/local_database_manager.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/pref_names.h"
#include "chrome/common/safe_browsing/binary_feature_extractor.h"
#include "chrome/common/safe_browsing/csd.pb.h"
#include "chrome/common/safe_browsing/file_type_policies_test_util.h"
@@ -42,6 +41,7 @@
#include "components/history/core/browser/history_service.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing_db/database_manager.h"
+#include "components/safe_browsing_db/safe_browsing_prefs.h"
#include "components/safe_browsing_db/test_database_manager.h"
#include "content/public/browser/download_danger_type.h"
#include "content/public/browser/page_navigator.h"
@@ -518,9 +518,8 @@ class DownloadProtectionServiceTest : public testing::Test {
}
void SetExtendedReportingPreference(bool is_extended_reporting) {
- profile_->GetPrefs()->SetBoolean(
- prefs::kSafeBrowsingExtendedReportingEnabled,
- is_extended_reporting);
+ profile_->GetPrefs()->SetBoolean(GetExtendedReportingPrefName(),
+ is_extended_reporting);
}
// Check scenarios where we should/shouldn't send a report for

Powered by Google App Engine
This is Rietveld 408576698