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

Unified Diff: chrome/common/localized_error.cc

Issue 1171333003: Move net::FormatUrl and friends outside of //net and into //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again now that CQ is fixed Created 5 years, 4 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
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698