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

Unified Diff: ui/views/layout/grid_layout.cc

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore [D]CHECKs and loop scoping. Created 7 years, 1 month 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 | « ui/views/focus/focus_traversal_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/grid_layout.cc
diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc
index 0e4d4150020a17487f7978a0a633ace5d91a74db..e4bf19d47c800383769cffcd363df1086c25981f 100644
--- a/ui/views/layout/grid_layout.cc
+++ b/ui/views/layout/grid_layout.cc
@@ -678,12 +678,8 @@ GridLayout::~GridLayout() {
// static
GridLayout* GridLayout::CreatePanel(View* host) {
GridLayout* layout = new GridLayout(host);
-
- const int horizontal_margin = DialogDelegate::UseNewStyle() ?
- kButtonHEdgeMarginNew : kPanelHorizMargin;
-
- layout->SetInsets(kPanelVertMargin, horizontal_margin,
- kPanelVertMargin, horizontal_margin);
+ layout->SetInsets(kPanelVertMargin, kButtonHEdgeMarginNew,
+ kPanelVertMargin, kButtonHEdgeMarginNew);
return layout;
}
« no previous file with comments | « ui/views/focus/focus_traversal_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698