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

Unified Diff: components/safe_browsing_db/safe_browsing_prefs.h

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: components/safe_browsing_db/safe_browsing_prefs.h
diff --git a/components/safe_browsing_db/safe_browsing_prefs.h b/components/safe_browsing_db/safe_browsing_prefs.h
index 1232401d75718a67a541561733287bbc0c1fab9f..d787076e5d71b24eaf3654bf3e3debeb0639788d 100644
--- a/components/safe_browsing_db/safe_browsing_prefs.h
+++ b/components/safe_browsing_db/safe_browsing_prefs.h
@@ -15,6 +15,10 @@ extern const char kSafeBrowsingExtendedReportingEnabled[];
namespace safe_browsing {
+// Returns whether the currently active Safe Browsing Extended Reporting
+// preference exists (eg: has been set before).
+bool ExtendedReportingPrefExists(const PrefService& prefs);
+
// Returns the name of the Safe Browsing Extended Reporting pref that is
// currently in effect. The specific pref in-use may change through experiments.
const char* GetExtendedReportingPrefName();
@@ -27,6 +31,10 @@ bool IsExtendedReportingEnabled(const PrefService& prefs);
// Updates UMA metrics about Safe Browsing Extended Reporting states.
void RecordExtendedReportingMetrics(const PrefService& prefs);
+// Sets the currently active Safe Browsing Extended Reporting preference to the
+// specified value.
+void SetExtendedReportingPref(PrefService* prefs, bool value);
+
} // namespace safe_browsing
#endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | components/safe_browsing_db/safe_browsing_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698