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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_utils.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 | « chrome/browser/ui/bookmarks/bookmark_utils.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_utils.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_utils.cc b/chrome/browser/ui/bookmarks/bookmark_utils.cc
index 0ab1d575d2411bf25ce12ae2fd1fe9685034c8dc..e03e3f9d6718be56b2324de11712a29187110877 100644
--- a/chrome/browser/ui/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_utils.cc
@@ -124,19 +124,14 @@ void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context) {
prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, always_show);
}
-base::string16 FormatBookmarkURLForDisplay(const GURL& url,
- const PrefService* prefs) {
- std::string languages;
- if (prefs)
- languages = prefs->GetString(prefs::kAcceptLanguages);
-
+base::string16 FormatBookmarkURLForDisplay(const GURL& url) {
// Because this gets re-parsed by FixupURL(), it's safe to omit the scheme
// and trailing slash, and unescape most characters. However, it's
// important not to drop any username/password, or unescape anything that
// changes the URL's meaning.
return url_formatter::FormatUrl(
- url, languages, url_formatter::kFormatUrlOmitAll &
- ~url_formatter::kFormatUrlOmitUsernamePassword,
+ url, url_formatter::kFormatUrlOmitAll &
+ ~url_formatter::kFormatUrlOmitUsernamePassword,
net::UnescapeRule::SPACES, nullptr, nullptr, nullptr);
}
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_utils.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698