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

Unified Diff: chrome/browser/ui/views/confirm_bubble_views.cc

Issue 13925019: fix GridLayout::CreatePanel for new style dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: msw review 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
Index: chrome/browser/ui/views/confirm_bubble_views.cc
diff --git a/chrome/browser/ui/views/confirm_bubble_views.cc b/chrome/browser/ui/views/confirm_bubble_views.cc
index 976659997cb81d3bea82492faf4c66dc3efb2bd6..e0ee172517f99c4732b7bf2461649c6f50c8b4d5 100644
--- a/chrome/browser/ui/views/confirm_bubble_views.cc
+++ b/chrome/browser/ui/views/confirm_bubble_views.cc
@@ -15,13 +15,7 @@
ConfirmBubbleViews::ConfirmBubbleViews(ConfirmBubbleModel* model)
: model_(model),
link_(NULL) {
- views::GridLayout* layout = new views::GridLayout(this);
- // TODO(msw): Use layout constants and fix the new-style sizing.
- layout->SetInsets(UseNewStyle() ? gfx::Insets(0, 0, 40, 0) :
- gfx::Insets(views::kUnrelatedControlVerticalSpacing,
- views::kUnrelatedControlHorizontalSpacing,
- views::kUnrelatedControlVerticalSpacing,
- views::kUnrelatedControlHorizontalSpacing));
+ views::GridLayout* layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);
// Use a fixed maximum message width, so longer messages will wrap.

Powered by Google App Engine
This is Rietveld 408576698