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

Unified Diff: chrome/browser/safe_browsing/srt_fetcher_win.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/srt_fetcher_win.cc
diff --git a/chrome/browser/safe_browsing/srt_fetcher_win.cc b/chrome/browser/safe_browsing/srt_fetcher_win.cc
index a242a1ad2b23bfdcab28bf42c2433164a5710a70..4fe44855db8c296bfa1c54b2af0a8adf60c004a1 100644
--- a/chrome/browser/safe_browsing/srt_fetcher_win.cc
+++ b/chrome/browser/safe_browsing/srt_fetcher_win.cc
@@ -44,6 +44,7 @@
#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/prefs/pref_service.h"
#include "components/rappor/rappor_service.h"
+#include "components/safe_browsing_db/safe_browsing_prefs.h"
#include "components/variations/net/variations_http_headers.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_thread.h"
@@ -553,8 +554,7 @@ void DisplaySRTPrompt(const base::FilePath& download_path) {
bool SafeBrowsingExtendedEnabledForBrowser(const Browser* browser) {
const Profile* profile = browser->profile();
return profile && !profile->IsOffTheRecord() &&
- profile->GetPrefs()->GetBoolean(
- prefs::kSafeBrowsingExtendedReportingEnabled);
+ IsExtendedReportingEnabled(*profile->GetPrefs());
}
// Returns true if there is a profile that is not in incognito mode and the user
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698