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

Unified Diff: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc

Issue 14571003: Don't display drop down arrows in rAc dialog unless there is a suggestion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update tests Created 7 years, 8 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/android/autofill/autofill_dialog_view_android.cc
diff --git a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
index c29a1d33959c6f7d7bf140b06115d421f886450c..35fdb1b98374238b20dbd9369dc2ab3303e86daf 100644
--- a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
+++ b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
@@ -146,7 +146,7 @@ void AutofillDialogViewAndroid::UpdateSection(DialogSection section) {
}
ui::MenuModel* menuModel = controller_->MenuModelForSection(section);
- const int itemCount = menuModel->GetItemCount();
+ const int itemCount = menuModel ? menuModel->GetItemCount() : 0;
ScopedJavaLocalRef<jobjectArray> menu_array =
Java_AutofillDialogGlue_createAutofillDialogMenuItemArray(env,
itemCount);

Powered by Google App Engine
This is Rietveld 408576698