| 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 2df20a8484405ebaa47494f5f769637ca8294f7a..c6e5ec541a487fcdc679fff22527ed9ad5df13fb 100644
|
| --- a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
|
| +++ b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
|
| @@ -205,7 +205,7 @@ std::vector<std::string> AutofillDialogViewAndroid::GetAvailableUserAccounts() {
|
| void AutofillDialogViewAndroid::ItemSelected(JNIEnv* env, jobject obj,
|
| jint section, jint index) {
|
| ui::MenuModel* menuModel =
|
| - controller_->MenuModelForSection(static_cast<DialogSection>(section));
|
| + controller_->MenuModelForSectionHack(static_cast<DialogSection>(section));
|
| if (menuModel)
|
| menuModel->ActivatedAt(index);
|
| }
|
| @@ -489,7 +489,7 @@ void AutofillDialogViewAndroid::UpdateOrFillSectionToJava(
|
| autofilled.obj());
|
| }
|
|
|
| - ui::MenuModel* menuModel = controller_->MenuModelForSection(section);
|
| + ui::MenuModel* menuModel = controller_->MenuModelForSectionHack(section);
|
| const int itemCount = menuModel->GetItemCount();
|
| ScopedJavaLocalRef<jobjectArray> menu_array =
|
| Java_AutofillDialogGlue_createAutofillDialogMenuItemArray(env,
|
| @@ -572,7 +572,7 @@ bool AutofillDialogViewAndroid::IsMenuItemEditable(DialogSection section,
|
| // An item is editable if
|
| // - it's not a "Manage..." (the last one), and
|
| // - it's a normal item, or it's an "Add..." and it has some data.
|
| - ui::MenuModel* menuModel = controller_->MenuModelForSection(section);
|
| + ui::MenuModel* menuModel = controller_->MenuModelForSectionHack(section);
|
| string16 label, sublabel;
|
| gfx::Image icon;
|
|
|
|
|