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

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: sync 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698