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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 2713803002: Views/Harmony: Use LayoutDelegate::GetMetric for views::kPanelVertMargin. (Closed)
Patch Set: Rebase. 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/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index a29b4b01b8635deaac336560a905d7735692daab..4ccf6d36576cb67b477d04dec83f4388c0a3df68 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -418,7 +418,9 @@ views::GridLayout* ExtensionInstallDialogView::CreateLayout(
// right margin (we effectively get a top margin anyway from the empty dialog
// title, and we add an explicit padding column as a right margin below).
views::GridLayout* layout = new views::GridLayout(container_);
- layout->SetInsets(0, views::kButtonHEdgeMarginNew, views::kPanelVertMargin,
+ layout->SetInsets(0, views::kButtonHEdgeMarginNew,
+ LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::PANEL_CONTENT_MARGIN),
0);
container_->SetLayoutManager(layout);
AddChildView(container_);

Powered by Google App Engine
This is Rietveld 408576698