Commit c7565782 authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Add a space after refine omnibox query suggestions.

BUG=862404

Change-Id: I39a49e01d58fb4c83d8a78002e442f6245bf0ea4
Reviewed-on: https://chromium-review.googlesource.com/1162674Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580700}
parent 9a40eecd
...@@ -1340,10 +1340,13 @@ public class LocationBarLayout extends FrameLayout ...@@ -1340,10 +1340,13 @@ public class LocationBarLayout extends FrameLayout
@Override @Override
public void onRefineSuggestion(OmniboxSuggestion suggestion) { public void onRefineSuggestion(OmniboxSuggestion suggestion) {
stopAutocomplete(false); stopAutocomplete(false);
mUrlCoordinator.setUrlBarData( boolean isUrlSuggestion = suggestion.isUrlSuggestion();
UrlBarData.forNonUrlText(suggestion.getFillIntoEdit()), String refineText = suggestion.getFillIntoEdit();
if (!isUrlSuggestion) refineText = TextUtils.concat(refineText, " ").toString();
mUrlCoordinator.setUrlBarData(UrlBarData.forNonUrlText(refineText),
UrlBar.ScrollType.NO_SCROLL, UrlBarCoordinator.SelectionState.SELECT_END); UrlBar.ScrollType.NO_SCROLL, UrlBarCoordinator.SelectionState.SELECT_END);
if (suggestion.isUrlSuggestion()) { if (isUrlSuggestion) {
RecordUserAction.record("MobileOmniboxRefineSuggestion.Url"); RecordUserAction.record("MobileOmniboxRefineSuggestion.Url");
} else { } else {
RecordUserAction.record("MobileOmniboxRefineSuggestion.Search"); RecordUserAction.record("MobileOmniboxRefineSuggestion.Search");
......
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