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

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: fix typo in elide_url.cc Created 4 years, 8 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 2a470ad4c53dbbd200b17632262673172229c342..1736e58e1bbcb49ec9aac7d9c25517d7bf3b5e9d 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() {
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698