summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 16:43:19 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 16:43:19 +0000
commite9b3528e6a8d79f465fcdd2e44477f1eb9275539 (patch)
tree35056a3c6b0d2b7e070b7979eb7f2da4f32e31d3 /net/base/net_util.cc
parentfb4c4b4cc8f9391f382bd6429efc66c60444c63e (diff)
downloadchromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.zip
chromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.tar.gz
chromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.tar.bz2
Misc. small cleanups I ran into while working on other changes.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2486004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r--net/base/net_util.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index 66c2dba..2417bba 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -1492,14 +1492,12 @@ std::wstring FormatUrl(const GURL& url,
} else {
AppendFormattedComponent(spec, parsed.username, unescape_rules, &url_string,
&new_parsed->username, offset_for_adjustment);
- if (parsed.password.is_valid()) {
+ if (parsed.password.is_valid())
url_string.push_back(':');
- }
AppendFormattedComponent(spec, parsed.password, unescape_rules, &url_string,
&new_parsed->password, offset_for_adjustment);
- if (parsed.username.is_valid() || parsed.password.is_valid()) {
+ if (parsed.username.is_valid() || parsed.password.is_valid())
url_string.push_back('@');
- }
}
if (prefix_end)
*prefix_end = static_cast<size_t>(url_string.length());