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 3551d121593672d1f7383eada8395d9851b851a9..c349bd72844d3408433b37f00cea19e4b2e9302a 100644 |
--- a/chrome/browser/interstitials/security_interstitial_page.cc |
+++ b/chrome/browser/interstitials/security_interstitial_page.cc |
@@ -18,10 +18,10 @@ |
#include "chrome/grit/browser_resources.h" |
#include "chrome/grit/generated_resources.h" |
#include "components/google/core/browser/google_util.h" |
+#include "components/url_formatter/url_formatter.h" |
#include "content/public/browser/interstitial_page.h" |
#include "content/public/browser/page_navigator.h" |
#include "content/public/browser/web_contents.h" |
-#include "net/base/net_util.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/base/webui/jstemplate_builder.h" |
@@ -122,7 +122,8 @@ base::string16 SecurityInterstitialPage::GetFormattedHostName() const { |
Profile::FromBrowserContext(web_contents()->GetBrowserContext()); |
if (profile) |
languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages); |
- base::string16 host = net::IDNToUnicode(request_url_.host(), languages); |
+ base::string16 host = |
+ url_formatter::IDNToUnicode(request_url_.host(), languages); |
if (base::i18n::IsRTL()) |
base::i18n::WrapStringWithLTRFormatting(&host); |
return host; |