Skip to content

Commit

Permalink
We have Component::reset(), so use it.
Browse files Browse the repository at this point in the history
BUG=none
TEST=none
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/227483013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262554 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pkasting@chromium.org committed Apr 8, 2014
1 parent 0d78ec0 commit e7ee68f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions url/url_canon_filesystemurl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ bool DoCanonicalizeFileSystemURL(const CHAR* spec,
CanonOutput* output,
url_parse::Parsed* new_parsed) {
// filesystem only uses {scheme, path, query, ref} -- clear the rest.
new_parsed->username = url_parse::Component();
new_parsed->password = url_parse::Component();
new_parsed->host = url_parse::Component();
new_parsed->port = url_parse::Component();
new_parsed->username.reset();
new_parsed->password.reset();
new_parsed->host.reset();
new_parsed->port.reset();

const url_parse::Parsed* inner_parsed = parsed.inner_parsed();
url_parse::Parsed new_inner_parsed;
Expand Down

0 comments on commit e7ee68f

Please sign in to comment.