diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-18 22:10:54 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-18 22:10:54 +0000 |
commit | 5581541cc09adfed95fbf478f6d8991e87164778 (patch) | |
tree | 59733c3d432fabff3e0dd48834054f75abc1d242 /chrome/browser/instant/instant_loader.cc | |
parent | 1763d7084cbb4e6784fdf89c92456c66fd1f05cc (diff) | |
download | chromium_src-5581541cc09adfed95fbf478f6d8991e87164778.zip chromium_src-5581541cc09adfed95fbf478f6d8991e87164778.tar.gz chromium_src-5581541cc09adfed95fbf478f6d8991e87164778.tar.bz2 |
Revert 69343 - Makes instant not suggest string that look like urls.
BUG=66887
TEST=see bug
Review URL: http://codereview.chromium.org/5787008
TBR=sky@chromium.org
Review URL: http://codereview.chromium.org/6012003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_loader.cc')
-rw-r--r-- | chrome/browser/instant/instant_loader.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc index 8c0b2c3..b6b47a6d 100644 --- a/chrome/browser/instant/instant_loader.cc +++ b/chrome/browser/instant/instant_loader.cc @@ -15,7 +15,6 @@ #include "base/timer.h" #include "base/utf_string_conversions.h" #include "base/values.h" -#include "chrome/browser/autocomplete/autocomplete.h" #include "chrome/browser/favicon_service.h" #include "chrome/browser/history/history_marshaling.h" #include "chrome/browser/instant/instant_loader_delegate.h" @@ -671,15 +670,6 @@ void InstantLoader::SetCompleteSuggestedText( return; } - AutocompleteInput::Type type = - AutocompleteInput::Parse(UTF16ToWide(complete_suggested_text), - std::wstring(), NULL, NULL); - if (type == AutocompleteInput::URL) { - // Ignore suggestions that look like urls. Otherwise the omnibox ends up - // showing what looks like a url but the page shows search results. - return; - } - string16 user_text_lower = l10n_util::ToLower(user_text_); string16 complete_suggested_text_lower = l10n_util::ToLower( complete_suggested_text); |