Commit cbf43767 authored by stkhapugin@chromium.org's avatar stkhapugin@chromium.org Committed by Commit Bot

[iOS] Add a space to refine query suggestions.

Bug: 862404
Change-Id: I3d775805657d7303cfbf6a04f581d855deb5717b
Reviewed-on: https://chromium-review.googlesource.com/1219507Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590296}
parent 75c5ca78
...@@ -123,6 +123,12 @@ void OmniboxPopupViewIOS::OnMatchSelectedForAppending( ...@@ -123,6 +123,12 @@ void OmniboxPopupViewIOS::OnMatchSelectedForAppending(
// Make a defensive copy of |match.fill_into_edit|, as CopyToOmnibox() will // Make a defensive copy of |match.fill_into_edit|, as CopyToOmnibox() will
// trigger a new round of autocomplete and modify |match|. // trigger a new round of autocomplete and modify |match|.
base::string16 fill_into_edit(match.fill_into_edit); base::string16 fill_into_edit(match.fill_into_edit);
// If the match is not a URL, append a whitespace to the end of it.
if (AutocompleteMatch::IsSearchType(match.type)) {
fill_into_edit.append(1, ' ');
}
delegate_->OnSelectedMatchForAppending(fill_into_edit); delegate_->OnSelectedMatchForAppending(fill_into_edit);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment