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

Unified Diff: components/security_interstitials/content/security_interstitial_page.cc

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rebase, fix merge conflicts Created 3 years, 7 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/content/security_interstitial_page.cc
diff --git a/components/security_interstitials/content/security_interstitial_page.cc b/components/security_interstitials/content/security_interstitial_page.cc
index 0e339db6c1367054dbf76f69f4e5c04e015ea47b..db371a66c520f1d3ce8c829c81fa98069da0ea46 100644
--- a/components/security_interstitials/content/security_interstitial_page.cc
+++ b/components/security_interstitials/content/security_interstitial_page.cc
@@ -105,13 +105,17 @@ base::string16 SecurityInterstitialPage::GetFormattedHostName() const {
request_url_);
}
+int SecurityInterstitialPage::GetHTMLTemplateId() {
+ return IDR_SECURITY_INTERSTITIAL_HTML;
+}
+
std::string SecurityInterstitialPage::GetHTMLContents() {
base::DictionaryValue load_time_data;
PopulateInterstitialStrings(&load_time_data);
webui::SetLoadTimeDataDefaults(
controller()->GetApplicationLocale(), &load_time_data);
std::string html = ResourceBundle::GetSharedInstance()
- .GetRawDataResource(IDR_SECURITY_INTERSTITIAL_HTML)
+ .GetRawDataResource(GetHTMLTemplateId())
.as_string();
webui::AppendWebUiCssTextDefaults(&html);
return webui::GetI18nTemplateHtml(html, &load_time_data);

Powered by Google App Engine
This is Rietveld 408576698