Commit 0b92e4a4 authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Fix autocomplete when focusing the omnibox in early startup.

BUG=873593

Change-Id: Ia8cf2340978bac68730a642e74977eac290edc16
Reviewed-on: https://chromium-review.googlesource.com/1178745Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583865}
parent 0d6b7367
...@@ -43,7 +43,10 @@ class UrlBarViewBinder { ...@@ -43,7 +43,10 @@ class UrlBarViewBinder {
} else if (UrlBarProperties.FOCUS_CHANGE_CALLBACK.equals(propertyKey)) { } else if (UrlBarProperties.FOCUS_CHANGE_CALLBACK.equals(propertyKey)) {
final Callback<Boolean> focusChangeCallback = final Callback<Boolean> focusChangeCallback =
model.getValue(UrlBarProperties.FOCUS_CHANGE_CALLBACK); model.getValue(UrlBarProperties.FOCUS_CHANGE_CALLBACK);
view.setOnFocusChangeListener((v, focused) -> focusChangeCallback.onResult(focused)); view.setOnFocusChangeListener((v, focused) -> {
if (focused) view.setIgnoreTextChangesForAutocomplete(false);
focusChangeCallback.onResult(focused);
});
} else if (UrlBarProperties.SHOW_CURSOR.equals(propertyKey)) { } else if (UrlBarProperties.SHOW_CURSOR.equals(propertyKey)) {
view.setCursorVisible(model.getValue(UrlBarProperties.SHOW_CURSOR)); view.setCursorVisible(model.getValue(UrlBarProperties.SHOW_CURSOR));
} else if (UrlBarProperties.TEXT_CONTEXT_MENU_DELEGATE.equals(propertyKey)) { } else if (UrlBarProperties.TEXT_CONTEXT_MENU_DELEGATE.equals(propertyKey)) {
......
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