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

Unified Diff: chrome/browser/ui/views/arc_app_dialog_view.cc

Issue 2867253003: Description: Views/Harmony Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Address comments 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 | « no previous file | chrome/browser/ui/views/certificate_selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/arc_app_dialog_view.cc
diff --git a/chrome/browser/ui/views/arc_app_dialog_view.cc b/chrome/browser/ui/views/arc_app_dialog_view.cc
index 0f9c1af00c21aac80657bc44fe8192a9439d7bfd..d4e2840716ad87de158f983c0653e6b8fc8b8289 100644
--- a/chrome/browser/ui/views/arc_app_dialog_view.cc
+++ b/chrome/browser/ui/views/arc_app_dialog_view.cc
@@ -23,7 +23,6 @@
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
-#include "ui/views/layout/layout_constants.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
@@ -138,11 +137,15 @@ ArcAppDialogView::ArcAppDialogView(Profile* profile,
if (parent_)
parent_window_tracker_ = NativeWindowTracker::Create(parent_);
+ ChromeLayoutProvider* provider = ChromeLayoutProvider::Get();
+
SetLayoutManager(new views::BoxLayout(
- views::BoxLayout::kHorizontal, views::kButtonHEdgeMarginNew,
- ChromeLayoutProvider::Get()->GetDistanceMetric(
+ views::BoxLayout::kHorizontal,
+ provider->GetDistanceMetric(DISTANCE_DIALOG_BUTTON_MARGIN),
+ provider->GetDistanceMetric(
DISTANCE_PANEL_CONTENT_MARGIN),
- views::kRelatedControlHorizontalSpacing));
+ provider->GetDistanceMetric(
+ views::DISTANCE_RELATED_CONTROL_HORIZONTAL)));
icon_view_ = new FixedBoundarySizeImageView();
AddChildView(icon_view_);
« no previous file with comments | « no previous file | chrome/browser/ui/views/certificate_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698