| Index: chrome/common/localized_error.cc
|
| diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc
|
| index 2de84acd1c9ae9b7e16b73068116c521aa34dbaa..b7c73ee069c3d29553def789e8237f3219e9d662 100644
|
| --- a/chrome/common/localized_error.cc
|
| +++ b/chrome/common/localized_error.cc
|
| @@ -18,9 +18,9 @@
|
| #include "chrome/grit/generated_resources.h"
|
| #include "components/error_page/common/error_page_params.h"
|
| #include "components/error_page/common/net_error_info.h"
|
| +#include "components/url_formatter/url_formatter.h"
|
| #include "net/base/escape.h"
|
| #include "net/base/net_errors.h"
|
| -#include "net/base/net_util.h"
|
| #include "third_party/WebKit/public/platform/WebURLError.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/webui/web_ui_util.h"
|
| @@ -555,9 +555,9 @@ void LocalizedError::GetStrings(int error_code,
|
| options.suggestions = SUGGEST_NONE;
|
| }
|
|
|
| - base::string16 failed_url_string(net::FormatUrl(
|
| - failed_url, accept_languages, net::kFormatUrlOmitNothing,
|
| - net::UnescapeRule::NORMAL, NULL, NULL, NULL));
|
| + base::string16 failed_url_string(url_formatter::FormatUrl(
|
| + failed_url, accept_languages, url_formatter::kFormatUrlOmitNothing,
|
| + net::UnescapeRule::NORMAL, nullptr, nullptr, nullptr));
|
| // URLs are always LTR.
|
| if (base::i18n::IsRTL())
|
| base::i18n::WrapStringWithLTRFormatting(&failed_url_string);
|
| @@ -594,8 +594,8 @@ void LocalizedError::GetStrings(int error_code,
|
| l10n_util::GetStringUTF16(options.summary_resource_id));
|
| }
|
| summary->SetString("failedUrl", failed_url_string);
|
| - summary->SetString("hostName", net::IDNToUnicode(failed_url.host(),
|
| - accept_languages));
|
| + summary->SetString("hostName", url_formatter::IDNToUnicode(failed_url.host(),
|
| + accept_languages));
|
| summary->SetString("productName",
|
| l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
|
|
|
|
|