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

Unified Diff: chrome/browser/interstitials/security_interstitial_page.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, most Android targets locally built successfully Created 4 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/interstitials/security_interstitial_page.cc
diff --git a/chrome/browser/interstitials/security_interstitial_page.cc b/chrome/browser/interstitials/security_interstitial_page.cc
index 6a12c74618e27f20bc28258624d2805b02b95e9a..27ce9e3f142bfd0de1543f8393f33ef869a466cc 100644
--- a/chrome/browser/interstitials/security_interstitial_page.cc
+++ b/chrome/browser/interstitials/security_interstitial_page.cc
@@ -78,13 +78,8 @@ bool SecurityInterstitialPage::IsPrefEnabled(const char* pref) {
}
base::string16 SecurityInterstitialPage::GetFormattedHostName() const {
- std::string languages;
- Profile* profile =
- Profile::FromBrowserContext(web_contents()->GetBrowserContext());
- if (profile)
- languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
return security_interstitials::common_string_util::GetFormattedHostName(
- request_url_, languages);
+ request_url_);
}
std::string SecurityInterstitialPage::GetHTMLContents() {

Powered by Google App Engine
This is Rietveld 408576698