Include a URL what-you-typed option when the default search provider is not available...
commit7d6b4f8b303603f2cf27220f0871df3812880a25
authorclindsay <clindsay@gmail.com>
Sat, 25 Oct 2014 21:53:20 +0000 (25 14:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 25 Oct 2014 21:53:34 +0000 (25 21:53 +0000)
treedb0561242e8a933e4d349c02168d5e8b12460fd1
parent5cf0f5d4e30862231bbd52251e6a3dfbc53b40a0
Include a URL what-you-typed option when the default search provider is not available and the input type is unknown.

Previously, when the default search provider was disabled via an enterprise policy, backspacing through the URL in the omnibar would get stuck as soon as the input got short enough to be classified as unknown. Normally, this is when the top autocomplete option would become a search for what you typed. But with search disabled, the top autocomplete option became the full previously visited URL. This change makes a URL what-you-typed autocomplete option to be provided instead under these circumstances.

BUG=363656

R=mpearson@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#301295}
AUTHORS
chrome/browser/autocomplete/history_url_provider.cc
chrome/browser/autocomplete/history_url_provider_unittest.cc