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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 298813002: views: Move MenuButton from TextButton to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove stray LOG Created 6 years, 6 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/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 72d99f31b4075fb7936d68986042a32bdbbf4d35..5b5d9ecc3a6000f93a83a3fe428da3bad37674c8 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -507,8 +507,6 @@ void AutofillDialogViews::AccountChooser::Update() {
gfx::Image icon = delegate_->AccountChooserImage();
image_->SetImage(icon.AsImageSkia());
menu_button_->SetText(delegate_->AccountChooserText());
- // This allows the button to shrink if the new text is smaller.
msw 2014/06/09 17:18:39 You can "Call set_min_size(gfx::Size()) to clear t
Elliot Glaysher 2014/06/11 00:27:28 Used set_min_size() at all places where we used to
- menu_button_->ClearMaxTextSize();
bool show_link = !delegate_->MenuModelForAccountChooser();
menu_button_->SetVisible(!show_link);

Powered by Google App Engine
This is Rietveld 408576698