summaryrefslogtreecommitdiffstats
path: root/chrome/browser/toolbar_model.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:20:40 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:20:40 +0000
commit1685f9b0efb3f65bc084e8b012357e2986d073d1 (patch)
treedafcc9e7d2bf8cddff882638432bd492c983fd77 /chrome/browser/toolbar_model.cc
parent6d1b928bc85521046fa7713abadc762beba11881 (diff)
downloadchromium_src-1685f9b0efb3f65bc084e8b012357e2986d073d1.zip
chromium_src-1685f9b0efb3f65bc084e8b012357e2986d073d1.tar.gz
chromium_src-1685f9b0efb3f65bc084e8b012357e2986d073d1.tar.bz2
Strips http from the omnibox
BUG=none TEST=type in urls and make sure once loaded we don't show http. Make sure we do show https (and other schemes) though. Review URL: http://codereview.chromium.org/1513023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/toolbar_model.cc')
-rw-r--r--chrome/browser/toolbar_model.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/toolbar_model.cc b/chrome/browser/toolbar_model.cc
index add91d8..eeae184 100644
--- a/chrome/browser/toolbar_model.cc
+++ b/chrome/browser/toolbar_model.cc
@@ -53,8 +53,8 @@ std::wstring ToolbarModel::GetText() const {
url = GURL(url.scheme() + ":");
}
}
- return net::FormatUrl(url, languages, true, UnescapeRule::NORMAL, NULL, NULL,
- NULL);
+ return net::FormatUrl(url, languages, net::kFormatUrlOmitAll,
+ UnescapeRule::NORMAL, NULL, NULL, NULL);
}
ToolbarModel::SecurityLevel ToolbarModel::GetSecurityLevel() const {