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

Unified Diff: chrome/browser/chromeos/power/idle_action_warning_dialog_view.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/power/idle_action_warning_dialog_view.cc
diff --git a/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc b/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
index 14f02909ee440b8d194b74552868de3ab89a0ef4..82dac97f053856a5fae362ddd95208447fcae619 100644
--- a/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
+++ b/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
@@ -10,6 +10,7 @@
#include "base/location.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/aura/window_event_dispatcher.h"
#include "ui/base/l10n/l10n_util.h"
@@ -20,7 +21,6 @@
#include "ui/views/border.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_client_view.h"
@@ -64,9 +64,9 @@ IdleActionWarningDialogView::IdleActionWarningDialogView(
: idle_action_time_(idle_action_time),
label_(NULL) {
label_ = new FixedWidthLabel(kIdleActionWarningContentWidth);
- label_->SetBorder(views::CreateEmptyBorder(
- views::kPanelVertMargin, views::kButtonHEdgeMarginNew,
- views::kPanelVertMargin, views::kButtonHEdgeMarginNew));
+ label_->SetBorder(
+ views::CreateEmptyBorder(ChromeLayoutProvider::Get()->GetInsetsMetric(
+ views::INSETS_DIALOG_CONTENTS)));
AddChildView(label_);
SetLayoutManager(new views::FillLayout());

Powered by Google App Engine
This is Rietveld 408576698