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

Unified Diff: chrome/browser/first_run/try_chrome_dialog_view.cc

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Fix various unit-tests Created 3 years, 9 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/first_run/try_chrome_dialog_view.cc
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.cc b/chrome/browser/first_run/try_chrome_dialog_view.cc
index f771a1288c335b0e164377f9a927b08a8e3e0be8..348fad70ca41fe8eae6a85b41559ef0ebb885055 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.cc
+++ b/chrome/browser/first_run/try_chrome_dialog_view.cc
@@ -34,7 +34,7 @@
#include "ui/views/controls/separator.h"
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_constants.h"
-#include "ui/views/views_delegate.h"
+#include "ui/views/layout/views_layout_delegate.h"
#include "ui/views/widget/widget.h"
namespace {
@@ -136,7 +136,7 @@ TryChromeDialogView::Result TryChromeDialogView::ShowModal(
columns->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 0,
views::GridLayout::USE_PREF, 0, 0);
columns->AddPaddingColumn(
- 0, views::ViewsDelegate::GetInstance()->GetDistanceMetric(
+ 0, views::ViewsLayoutDelegate::Get()->GetDistanceMetric(
views::DistanceMetric::RELATED_BUTTON_HORIZONTAL));
columns->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 0,
views::GridLayout::USE_PREF, 0, 0);

Powered by Google App Engine
This is Rietveld 408576698