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

Unified Diff: chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc

Issue 2919903002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: 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/chromeos/profiles/multiprofiles_intro_dialog.cc
diff --git a/chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc b/chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc
index c4ab98d91b683f5fc170a57cb2481e9a4d592e04..c19eab46bdbb2b265128b1610dec68fbc5d589b3 100644
--- a/chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc
+++ b/chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc
@@ -7,6 +7,7 @@
#include "ash/shell.h"
#include "base/macros.h"
#include "chrome/browser/ui/browser_dialogs.h"
+#include "chrome/browser/ui/views/harmony/chrome_layout_provider.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -14,7 +15,6 @@
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/fill_layout.h"
-#include "ui/views/layout/layout_constants.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
@@ -106,9 +106,11 @@ gfx::Size MultiprofilesIntroView::CalculatePreferredSize() const {
}
void MultiprofilesIntroView::InitDialog() {
- SetBorder(views::CreateEmptyBorder(views::kPanelVertMargin,
- views::kButtonHEdgeMarginNew, 0,
- views::kButtonHEdgeMarginNew));
+ gfx::Insets dialog_insets = ChromeLayoutProvider::Get()->GetInsetsMetric(
+ views::INSETS_DIALOG_CONTENTS);
+
+ SetBorder(views::CreateEmptyBorder(dialog_insets.top(), dialog_insets.left(),
Peter Kasting 2017/06/01 23:59:56 This looks like INSETS_DIALOG_TITLE.
ananta 2017/06/02 00:16:36 Done.
+ 0, dialog_insets.right());
SetLayoutManager(new views::FillLayout());
// Explanation string

Powered by Google App Engine
This is Rietveld 408576698