Index: chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java |
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java |
index 0948543598d567deb0f4fed21a0ebe6fca97d940..883918adac4389ee24c20c8c79c44d17f027598c 100644 |
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java |
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java |
@@ -80,6 +80,14 @@ public class SuggestionPopup implements OnSuggestionsReceivedListener, TextWatch |
} |
/** |
+ * Stops the autocomplete controller and closes the suggestion popup. |
+ */ |
+ public void hideSuggestions() { |
+ stopAutocomplete(true); |
+ dismissPopup(); |
+ } |
+ |
+ /** |
* Signals the autocomplete controller to stop generating suggestions and |
* cancels the queued task to start the autocomplete controller, if any. |
* |