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

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

Issue 2859193004: Remove GridLayout::SetInsets in favor of an empty border on the host. (Closed)
Patch Set: missed a merge problem Created 3 years, 7 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 7a3ffa6f68178a795ea628bc55b65c13d44b7879..2e83f92f8b42dd197b4a54275fb9b46d4a4b6fa7 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -456,8 +456,9 @@ views::GridLayout* ExtensionInstallDialogView::CreateLayout(
// title, but on the same y-axis, and the scroll view used to contain other
// content can have its scrollbar aligned with the right edge of the dialog.
views::GridLayout* layout = new views::GridLayout(container_);
- layout->SetInsets(0, horizontal_margin, bottom_margin, 0);
container_->SetLayoutManager(layout);
+ container_->SetBorder(
+ views::CreateEmptyBorder(0, horizontal_margin, bottom_margin, 0));
AddChildView(container_);
views::ColumnSet* column_set = layout->AddColumnSet(column_set_id);

Powered by Google App Engine
This is Rietveld 408576698