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

Unified Diff: components/safe_browsing_db/safe_browsing_prefs.h

Issue 2435933003: Further refactoring of SBER1 preference usage. (Closed)
Patch Set: git cl format 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..db0e14f592c7aed593e420883b691d30d42e5c15 100644
--- a/components/safe_browsing_db/safe_browsing_prefs.h
+++ b/components/safe_browsing_db/safe_browsing_prefs.h
@@ -27,6 +27,14 @@ 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);
vakh (use Gerrit instead) 2016/10/20 21:14:43 Nit (feel free to ignore): I would encourage you t
lpz 2016/10/21 16:18:27 Done.
+
+// Returns whether the currently active Safe Browsing Extended Reporting
+// preference exists (eg: has been set before).
+bool ExtendedReportingPrefExists(const PrefService& prefs);
+
} // 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