summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/options/passwords_page_gtk.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 02:37:40 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 02:37:40 +0000
commit79845effcd569cb61784e8a8c221f839e6e23525 (patch)
treed86e942097765499876b48a5d764592e2b9c376f /chrome/browser/gtk/options/passwords_page_gtk.cc
parent9902c201466fe4a701f43a124f4d22b6829c87e6 (diff)
downloadchromium_src-79845effcd569cb61784e8a8c221f839e6e23525.zip
chromium_src-79845effcd569cb61784e8a8c221f839e6e23525.tar.gz
chromium_src-79845effcd569cb61784e8a8c221f839e6e23525.tar.bz2
Strip the trailing slash from URLs like "http://google.com/". This especially helps when the scheme has also been stripped, as it makes the hostname look less unbalanced. We're careful to avoid stripping the slash when doing so would confuse the omnibox.
This also moves to more aggressive stripping and/or unescaping in several places. In general, it seems like we should be as aggressive as is feasible. BUG=43587 TEST=Visit google.com. There should be no slash in the address bar. Review URL: http://codereview.chromium.org/2389002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/passwords_page_gtk.cc')
-rw-r--r--chrome/browser/gtk/options/passwords_page_gtk.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/gtk/options/passwords_page_gtk.cc b/chrome/browser/gtk/options/passwords_page_gtk.cc
index 9ecf89f..90cd7b6 100644
--- a/chrome/browser/gtk/options/passwords_page_gtk.cc
+++ b/chrome/browser/gtk/options/passwords_page_gtk.cc
@@ -159,8 +159,7 @@ void PasswordsPageGtk::SetPasswordList(
password_list_.resize(result.size());
for (size_t i = 0; i < result.size(); ++i) {
password_list_[i] = *result[i];
- std::wstring formatted = net::FormatUrl(result[i]->origin, languages,
- net::kFormatUrlOmitAll, UnescapeRule::NONE, NULL, NULL, NULL);
+ std::wstring formatted = net::FormatUrl(result[i]->origin, languages);
std::string site = WideToUTF8(formatted);
std::string user = UTF16ToUTF8(result[i]->username_value);
GtkTreeIter iter;