Index: chrome/browser/ui/views/first_run_dialog.cc |
diff --git a/chrome/browser/ui/views/first_run_dialog.cc b/chrome/browser/ui/views/first_run_dialog.cc |
index 75cb9691250e0843a01ded5076d07c6369fbf93f..62db3dc03a9f1baf041c1631984ffb77c74e7627 100644 |
--- a/chrome/browser/ui/views/first_run_dialog.cc |
+++ b/chrome/browser/ui/views/first_run_dialog.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/browser/metrics/metrics_reporting_state.h" |
#include "chrome/browser/platform_util.h" |
#include "chrome/browser/shell_integration.h" |
+#include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/grit/chromium_strings.h" |
#include "chrome/grit/generated_resources.h" |
@@ -25,7 +26,6 @@ |
#include "ui/views/controls/button/checkbox.h" |
#include "ui/views/controls/link.h" |
#include "ui/views/layout/grid_layout.h" |
-#include "ui/views/layout/layout_constants.h" |
#include "ui/views/widget/widget.h" |
#include "ui/views/window/dialog_delegate.h" |
@@ -82,8 +82,6 @@ FirstRunDialog::FirstRunDialog(Profile* profile) |
report_crashes_(NULL) { |
GridLayout* layout = GridLayout::CreatePanel(this); |
- const int related_y = views::kRelatedControlVerticalSpacing; |
- |
views::ColumnSet* column_set = layout->AddColumnSet(0); |
column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 0, |
GridLayout::USE_PREF, 0, 0); |
@@ -94,7 +92,9 @@ FirstRunDialog::FirstRunDialog(Profile* profile) |
make_default_->SetChecked(true); |
layout->AddView(make_default_); |
- layout->StartRowWithPadding(0, 0, 0, related_y); |
+ layout->StartRowWithPadding(0, 0, 0, |
+ ChromeLayoutProvider::Get()->GetDistanceMetric( |
+ views::DISTANCE_RELATED_CONTROL_VERTICAL)); |
report_crashes_ = new views::Checkbox(l10n_util::GetStringUTF16( |
IDS_OPTIONS_ENABLE_LOGGING)); |
// Having this box checked means the user has to opt-out of metrics recording. |