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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.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 | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 8a69185bd48a84d970dd6deb9688041221e01c5d..835b0e91c75eebceba4d588d607224059e7215e3 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1373,14 +1373,13 @@ void AutofillDialogViews::UpdateDetailsGroupState(const DetailsGroup& group) {
save_in_chrome_checkbox_->SetVisible(
controller_->ShouldOfferToSaveInChrome());
- const bool has_suggestions =
- controller_->MenuModelForSection(group.section)->GetItemCount() > 0;
+ const bool has_menu = !!controller_->MenuModelForSection(group.section);
if (group.suggested_button)
- group.suggested_button->SetVisible(has_suggestions);
+ group.suggested_button->SetVisible(has_menu);
if (group.container) {
- group.container->SetForwardMouseEvents(has_suggestions && show_suggestions);
+ group.container->SetForwardMouseEvents(has_menu && show_suggestions);
group.container->SetVisible(controller_->SectionIsActive(group.section));
}
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698