Handle view-source: URLs better in the history providers.
commit513fa26db5e8e7ad99fa3a499d0a140ade2bf552
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 9 Sep 2013 21:29:32 +0000 (9 21:29 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 9 Sep 2013 21:29:32 +0000 (9 21:29 +0000)
treec0096e86055b575fd18929baeceea3897bf8fb14
parent8c0e82adf4b4291ff531c2689cff34878ae8dd72
Handle view-source: URLs better in the history providers.

This makes fixup strip the "http://" scheme back out when the user didn't type
it, even when it was inserted after "view-source:".

This also fixes highlighting of such input in the resulting matches.

BUG=286451
TEST=Typing "view-source:x" doesn't crash, and highlights correctly in the dropdown
R=beaudoin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222097 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/autocomplete/history_provider.cc
chrome/browser/autocomplete/history_url_provider.cc
chrome/browser/autocomplete/history_url_provider_unittest.cc