| 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);
|
|
|