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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc

Issue 2435933003: Further refactoring of SBER1 preference usage. (Closed)
Patch Set: Order functions alphabetically. 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/incident_reporting/last_download_finder_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
index 004657bd8c2a336c117a2a855106847e835c0387..cca9f9927d26f3989f39ea862bb49d8a611dfe4f 100644
--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
@@ -199,8 +199,8 @@ class LastDownloadFinderTest : public testing::Test {
chrome::RegisterUserProfilePrefs(prefs->registry());
prefs->SetBoolean(prefs::kSafeBrowsingEnabled,
safe_browsing_opt_in != SAFE_BROWSING_OPT_OUT);
- prefs->SetBoolean(GetExtendedReportingPrefName(),
- safe_browsing_opt_in == EXTENDED_REPORTING_OPT_IN);
+ SetExtendedReportingPref(prefs.get(),
+ safe_browsing_opt_in == EXTENDED_REPORTING_OPT_IN);
TestingProfile* profile = profile_manager_->CreateTestingProfile(
profile_name, std::move(prefs),

Powered by Google App Engine
This is Rietveld 408576698