Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2193)

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 870833002: [android] Autofill popup behavior fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update expectations of old test and add a new test. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/chrome_autofill_client.cc
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc
index 47b821982e33ad2042643c681b2a88a895fa6a4f..7b804eed91c6bebd40ddb6f4a436a2790ea2d147 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -219,7 +219,13 @@ void ChromeAutofillClient::DidNavigateAnyFrame(
HideRequestAutocompleteDialog();
}
-void ChromeAutofillClient::MainFrameWasResized() {
+void ChromeAutofillClient::MainFrameWasResized(bool width_changed) {
+#if defined(OS_ANDROID)
+ // Ignore virtual keyboard showing and hiding a strip of suggestions.
+ if (!width_changed)
+ return;
+#endif
+
HideAutofillPopup();
}
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/browser/ui/views/autofill/autofill_popup_base_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698