Omnibox: Don't Promote Intranet Hostnames Pound Sign Space Whatever ("c# foo")
commit44b84ded583a35fd3460480b7f284f1df9b03365
authormpearson@chromium.org <mpearson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 5 Apr 2013 19:54:05 +0000 (5 19:54 +0000)
committermpearson@chromium.org <mpearson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 5 Apr 2013 19:54:05 +0000 (5 19:54 +0000)
tree13ac69bd0cb12177448a0a71c577c58e4633d173
parentc8e56bd49ed2a92cc51164aa2f06c5d7e1ed0a60
Omnibox: Don't Promote Intranet Hostnames Pound Sign Space Whatever ("c# foo")

Suppose you have an intranet hostname "c" that you've previously visited.

After this change, the behavior will be as follows:
input  ->  inline suggestion (what happens what you hit return)
c -> navigate to URL
c/ -> navigate to URL
c#foo -> search (this behavior differs from before this change)
c# foo -> search (this behavior differs from before this change)
c#  foo -> search (this behavior differs from before this change)
c# -> search (this behavior differs from before this change)
c#  -> search (this behavior differs from before this change) (notice the extra spaces the URL parser drops them)
c/#foo -> navigate to URL

BUG=169449

Review URL: https://chromiumcodereview.appspot.com/13190020

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