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

Unified Diff: chrome/browser/ui/views/cookie_info_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/cookie_info_view.cc
diff --git a/chrome/browser/ui/views/cookie_info_view.cc b/chrome/browser/ui/views/cookie_info_view.cc
index e0638f7db3230707d92094e37392de5aefc16784..39be2c9961c6dbd07a7e4176ee09a486f0de586a 100644
--- a/chrome/browser/ui/views/cookie_info_view.cc
+++ b/chrome/browser/ui/views/cookie_info_view.cc
@@ -147,11 +147,12 @@ void CookieInfoView::Init() {
expires_value_field_ = new views::Textfield;
views::GridLayout* layout = new views::GridLayout(this);
+ SetLayoutManager(layout);
ChromeLayoutProvider* provider = ChromeLayoutProvider::Get();
int dialog_button_margin =
provider->GetDistanceMetric(DISTANCE_DIALOG_BUTTON_MARGIN);
- layout->SetInsets(0, dialog_button_margin, 0, dialog_button_margin);
- SetLayoutManager(layout);
+ SetBorder(views::CreateEmptyBorder(0, dialog_button_margin, 0,
+ dialog_button_margin));
int three_column_layout_id = 0;
views::ColumnSet* column_set = layout->AddColumnSet(three_column_layout_id);

Powered by Google App Engine
This is Rietveld 408576698