Commit 84cffb0f authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Don't clear image cache, if URL focus is lost before native is initialized.

Bug: 969093, 968951
Change-Id: Ibc88bcc667d8035c49f58c3c0cd0f98651595acb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637669Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Ender <ender@google.com>
Cr-Commit-Position: refs/heads/master@{#665643}
parent ac5e2390
...@@ -75,7 +75,7 @@ public class EntitySuggestionProcessor implements SuggestionProcessor { ...@@ -75,7 +75,7 @@ public class EntitySuggestionProcessor implements SuggestionProcessor {
@Override @Override
public void onUrlFocusChange(boolean hasFocus) { public void onUrlFocusChange(boolean hasFocus) {
if (!hasFocus) mImageFetcher.clear(); if (mImageFetcher != null && !hasFocus) mImageFetcher.clear();
} }
private void fetchEntityImage(OmniboxSuggestion suggestion, PropertyModel model) { private void fetchEntityImage(OmniboxSuggestion suggestion, PropertyModel model) {
......
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