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

Unified Diff: chrome/browser/chromeos/attestation/platform_verification_dialog.cc

Issue 2919903002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: presubmit 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/attestation/platform_verification_dialog.cc
diff --git a/chrome/browser/chromeos/attestation/platform_verification_dialog.cc b/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
index b88bc776ef219ab636e9c06e45e6d442d4cdff25..52565f87f328f192259891a291ed17423c2ede17 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
+++ b/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/singleton_tabs.h"
+#include "chrome/browser/ui/views/harmony/chrome_layout_provider.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
@@ -27,7 +28,6 @@
#include "ui/views/border.h"
#include "ui/views/controls/styled_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"
@@ -75,8 +75,11 @@ PlatformVerificationDialog::PlatformVerificationDialog(
domain_(domain),
callback_(callback) {
SetLayoutManager(new views::FillLayout());
- SetBorder(views::CreateEmptyBorder(0, views::kButtonHEdgeMarginNew, 0,
- views::kButtonHEdgeMarginNew));
+
+ gfx::Insets dialog_insets = ChromeLayoutProvider::Get()->GetInsetsMetric(
+ views::INSETS_DIALOG_CONTENTS);
+ SetBorder(views::CreateEmptyBorder(0, dialog_insets.left(), 0,
+ dialog_insets.right()));
const base::string16 learn_more = l10n_util::GetStringUTF16(IDS_LEARN_MORE);
std::vector<size_t> offsets;
base::string16 headline = l10n_util::GetStringFUTF16(

Powered by Google App Engine
This is Rietveld 408576698