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

Unified Diff: ui/views/window/dialog_client_view.cc

Issue 2702403010: Fix the absence of padding on some UI buttons. (Closed)
Patch Set: change switch Created 3 years, 10 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: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 7adec3fd48238e49f19dc33c714d9c1ac37a5c8b..0184098140bdec7bf0a29248f43d6eb1ddac9eb4 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -341,8 +341,6 @@ LabelButton* DialogClientView::CreateDialogButton(ui::DialogButton type) {
button = MdTextButton::CreateSecondaryUiButton(this, title);
}
- // TODO(bsep): Setting the minimum size is redundant with MdTextButton, so
- // this can be deleted when harmony is always on.
const int minimum_width =
ViewsDelegate::GetInstance()->GetDialogButtonMinimumWidth();
button->SetMinSize(gfx::Size(minimum_width, 0));
« chrome/browser/ui/views/harmony/layout_delegate.cc ('K') | « ui/views/views_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698