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

Unified Diff: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.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
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | mash/catalog_viewer/catalog_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc
diff --git a/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc b/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc
index 703f547950359a297c401bb4d5b36016c5029065..4315eba621e7401166b7259694ab53a03398c787 100644
--- a/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc
+++ b/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc
@@ -202,8 +202,9 @@ void ProfileSigninConfirmationDialogViews::ViewHierarchyChanged(
views::LayoutProvider::Get()->GetInsetsMetric(views::INSETS_PANEL);
// The prompt bar needs to go to the edge of the dialog, so ignore insets for
// the outer layout.
+ SetBorder(views::CreateEmptyBorder(panel_insets.top(), 0,
+ panel_insets.bottom(), 0));
views::GridLayout* dialog_layout = new views::GridLayout(this);
- dialog_layout->SetInsets(panel_insets.top(), 0, panel_insets.bottom(), 0);
SetLayoutManager(dialog_layout);
// Use GridLayout inside the prompt bar because StyledLabel requires it.
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | mash/catalog_viewer/catalog_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698