| Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| index 67f2cc4dd0b3e7f6a96a07e1f5f7ca75a267bf5f..440dc6234f43abc262a113bd81565ede707312c0 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| @@ -68,10 +68,6 @@ const char kLearnMoreMalwareUrlV2[] =
|
| const char kLearnMorePhishingUrlV2[] =
|
| "https://www.google.com/transparencyreport/safebrowsing/";
|
|
|
| -const char kPrivacyLinkHtml[] =
|
| - "<a id=\"privacy-link\" href=\"\" onclick=\"sendCommand('showPrivacy'); "
|
| - "return false;\" onmousedown=\"return false;\">%s</a>";
|
| -
|
| // After a malware interstitial where the user opted-in to the report
|
| // but clicked "proceed anyway", we delay the call to
|
| // MalwareDetails::FinishCollection() by this much time (in
|
| @@ -88,10 +84,6 @@ const char kShowDiagnosticCommand[] = "showDiagnostic";
|
| const char kShowPrivacyCommand[] = "showPrivacy";
|
| const char kTakeMeBackCommand[] = "takeMeBack";
|
|
|
| -// Other constants used to communicate with the JavaScript.
|
| -const char kBoxChecked[] = "boxchecked";
|
| -const char kDisplayCheckBox[] = "displaycheckbox";
|
| -
|
| // Constants for the Experience Sampling instrumentation.
|
| const char kEventNameMalware[] = "safebrowsing_interstitial_";
|
| const char kEventNameHarmful[] = "harmful_interstitial_";
|
| @@ -140,7 +132,8 @@ SafeBrowsingBlockingPage::SafeBrowsingBlockingPage(
|
| SafeBrowsingUIManager* ui_manager,
|
| WebContents* web_contents,
|
| const UnsafeResourceList& unsafe_resources)
|
| - : SecurityInterstitialPage(web_contents, unsafe_resources[0].url),
|
| + : SecurityInterstitialPageWithExtendedReporting(web_contents,
|
| + unsafe_resources[0].url),
|
| malware_details_proceed_delay_ms_(
|
| kMalwareDetailsProceedDelayMilliSeconds),
|
| ui_manager_(ui_manager),
|
| @@ -374,14 +367,6 @@ void SafeBrowsingBlockingPage::OverrideRendererPrefs(
|
| prefs, profile, web_contents());
|
| }
|
|
|
| -void SafeBrowsingBlockingPage::SetReportingPreference(bool report) {
|
| - Profile* profile = Profile::FromBrowserContext(
|
| - web_contents()->GetBrowserContext());
|
| - PrefService* pref = profile->GetPrefs();
|
| - pref->SetBoolean(prefs::kSafeBrowsingExtendedReportingEnabled, report);
|
| - UMA_HISTOGRAM_BOOLEAN("SB2.SetExtendedReportingEnabled", report);
|
| -}
|
| -
|
| void SafeBrowsingBlockingPage::OnProceed() {
|
| proceeded_ = true;
|
| // Send the malware details, if we opted to.
|
| @@ -475,12 +460,6 @@ void SafeBrowsingBlockingPage::FinishMalwareDetails(int64 delay_ms) {
|
| }
|
| }
|
|
|
| -bool SafeBrowsingBlockingPage::IsPrefEnabled(const char* pref) {
|
| - Profile* profile =
|
| - Profile::FromBrowserContext(web_contents()->GetBrowserContext());
|
| - return profile->GetPrefs()->GetBoolean(pref);
|
| -}
|
| -
|
| // static
|
| void SafeBrowsingBlockingPage::NotifySafeBrowsingUIManager(
|
| SafeBrowsingUIManager* ui_manager,
|
|
|