Don't return URL from AutocompleteInput::Parse() when the input isn't
commit8842deda5f66fd5a161effcb5cc00b90d858ac6b
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 00:45:48 +0000 (26 00:45 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 00:45:48 +0000 (26 00:45 +0000)
tree97816e86f9a45bae75fd107dd6302af86cb760c2
parent30d54f8d6b7c92a3f9cf73cbea332a1de431ec9a
Don't return URL from AutocompleteInput::Parse() when the input isn't
canonicalizable and has an explicit scheme.

This fixes a DCHECK.

BUG=286457
TEST=See bug comments 0 and 7 for testcases; none should DCHECK.
R=mpearson@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253310 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/autocomplete/autocomplete_input.cc
chrome/browser/autocomplete/autocomplete_input_unittest.cc