diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 23:03:49 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 23:03:49 +0000 |
commit | e918c1104a9341d331beb045c46a1c44d73c3b54 (patch) | |
tree | 9b448c92021f256dc8a7cc18623614c3dcd40116 /chrome/browser/autocomplete/autocomplete.h | |
parent | cd8ee6d879df0e491a81f1d59ac8d982d7bdc2a8 (diff) | |
download | chromium_src-e918c1104a9341d331beb045c46a1c44d73c3b54.zip chromium_src-e918c1104a9341d331beb045c46a1c44d73c3b54.tar.gz chromium_src-e918c1104a9341d331beb045c46a1c44d73c3b54.tar.bz2 |
Fixes bug in handling of spaces in the search provider. The problem
occurred because AutocompleteInput strips whitespace, but whitespace
matters for suggest text.
BUG=65701
TEST=see bug
Review URL: http://codereview.chromium.org/5561008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h index dbf5c0e..8388265 100644 --- a/chrome/browser/autocomplete/autocomplete.h +++ b/chrome/browser/autocomplete/autocomplete.h @@ -188,6 +188,9 @@ class AutocompleteInput { bool synchronous_only); ~AutocompleteInput(); + // If type is |FORCED_QUERY| and |text| starts with '?', it is removed. + static void RemoveForcedQueryStringIfNecessary(Type type, std::wstring* text); + // Converts |type| to a string representation. Used in logging. static std::string TypeToString(Type type); |