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

Unified Diff: components/security_interstitials/core/controller_client.cc

Issue 2330753002: Update links for the SBER opt-in on interstitials (Closed)
Patch Set: Update variable name Created 4 years, 3 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/security_interstitials/core/controller_client.cc
diff --git a/components/security_interstitials/core/controller_client.cc b/components/security_interstitials/core/controller_client.cc
index a17f3f19f904e603c924470906928ce20c284b8a..1bf60bab51090cec9f529aa44f048f1db8215755 100644
--- a/components/security_interstitials/core/controller_client.cc
+++ b/components/security_interstitials/core/controller_client.cc
@@ -50,4 +50,13 @@ void ControllerClient::OpenExtendedReportingPrivacyPolicy() {
OpenUrlInCurrentTab(privacy_url);
}
+void ControllerClient::OpenExtendedReportingWhitepaper() {
+ metrics_helper_->RecordUserInteraction(MetricsHelper::SHOW_WHITEPAPER);
+ GURL whitepaper_url(
+ l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_WHITEPAPER_URL));
+ whitepaper_url = google_util::AppendGoogleLocaleParam(whitepaper_url,
+ GetApplicationLocale());
+ OpenUrlInCurrentTab(whitepaper_url);
+}
+
} // namespace security_interstitials
« no previous file with comments | « components/security_interstitials/core/controller_client.h ('k') | components/security_interstitials/core/metrics_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698