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

Unified Diff: components/url_formatter/url_fixer.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
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | components/url_formatter/url_formatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/url_fixer.cc
diff --git a/components/url_formatter/url_fixer.cc b/components/url_formatter/url_fixer.cc
index 54ff17f168c1d7e4e2ac9647e4831057fb60e1bb..04092636ec1acfc022b89d6f802fcc6b9d31b530 100644
--- a/components/url_formatter/url_fixer.cc
+++ b/components/url_formatter/url_fixer.cc
@@ -187,7 +187,7 @@ std::string FixupPath(const std::string& text) {
GURL file_url = net::FilePathToFileURL(base::FilePath(filename));
if (file_url.is_valid()) {
return base::UTF16ToUTF8(url_formatter::FormatUrl(
- file_url, std::string(), url_formatter::kFormatUrlOmitUsernamePassword,
+ file_url, url_formatter::kFormatUrlOmitUsernamePassword,
net::UnescapeRule::NORMAL, nullptr, nullptr, nullptr));
}
@@ -641,8 +641,7 @@ GURL FixupRelativeFile(const base::FilePath& base_dir,
GURL file_url = net::FilePathToFileURL(full_path);
if (file_url.is_valid())
return GURL(base::UTF16ToUTF8(url_formatter::FormatUrl(
- file_url, std::string(),
- url_formatter::kFormatUrlOmitUsernamePassword,
+ file_url, url_formatter::kFormatUrlOmitUsernamePassword,
net::UnescapeRule::NORMAL, nullptr, nullptr, nullptr)));
// Invalid files fall through to regular processing.
}
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | components/url_formatter/url_formatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698