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

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

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Changes due to feedback. Created 3 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: ui/views/layout/grid_layout.cc
diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc
index 6de7a05a170c7f653be2c27487f0e42956c9f590..f7fc6d0443e79bf8587450f2440c1e51d029d2c4 100644
--- a/ui/views/layout/grid_layout.cc
+++ b/ui/views/layout/grid_layout.cc
@@ -10,8 +10,8 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "ui/views/layout/layout_constants.h"
+#include "ui/views/layout/layout_delegate.h"
#include "ui/views/view.h"
-#include "ui/views/views_delegate.h"
#include "ui/views/window/dialog_delegate.h"
namespace views {
@@ -653,7 +653,7 @@ GridLayout::~GridLayout() {
GridLayout* GridLayout::CreatePanel(View* host) {
GridLayout* layout = new GridLayout(host);
layout->SetInsets(
- ViewsDelegate::GetInstance()->GetInsetsMetric(InsetsMetric::PANEL));
+ LayoutDelegate::Get()->GetInsetsMetric(InsetsMetric::PANEL));
host->SetLayoutManager(layout);
return layout;
}

Powered by Google App Engine
This is Rietveld 408576698