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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mattm comments Created 5 years, 9 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/safe_browsing_blocking_page.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
index ea9704bfdc9666c123277c37d6127964b1737aa7..5d9f2db46bb4740705abc35f9b8f72761662732a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
@@ -90,7 +90,7 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
friend class SafeBrowsingBlockingPageTest;
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
ProceedThenDontProceed);
- void SetReportingPreference(bool report);
+
void UpdateReportingPref(); // Used for the transition from old to new pref.
// Don't instantiate this class directly, use ShowBlockingPage instead.
@@ -124,10 +124,6 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
// enabled, the report is scheduled to be sent on the |ui_manager_|.
void FinishMalwareDetails(int64 delay_ms);
- // Returns the boolean value of the given |pref| from the PrefService of the
- // Profile associated with |web_contents_|.
- bool IsPrefEnabled(const char* pref);
-
// A list of SafeBrowsingUIManager::UnsafeResource for a tab that the user
// should be warned about. They are queued when displaying more than one
// interstitial at a time.
@@ -185,16 +181,14 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
private:
// Fills the passed dictionary with the values to be passed to the template
// when creating the HTML.
- void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);
void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data);
void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data);
void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data);
+ void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);
std::string GetMetricPrefix() const;
std::string GetSamplingEventName() const;
- scoped_ptr<SecurityInterstitialMetricsHelper> metrics_helper_;
-
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage);
};

Powered by Google App Engine
This is Rietveld 408576698