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

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

Issue 2888563004: Delete panel metrics and define insets in terms of distance metrics. (Closed)
Patch Set: one wrong conversion 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/ui/views/settings_reset_prompt_dialog.cc
diff --git a/chrome/browser/ui/views/settings_reset_prompt_dialog.cc b/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
index 97afffc67888cc5f5c8687a5ec8aa74d30bed957..836e4a1b0d7813c10cb705b84d75685d880878a4 100644
--- a/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
+++ b/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
@@ -41,13 +41,13 @@ SettingsResetPromptDialog::SettingsResetPromptDialog(
ChromeLayoutProvider* provider = ChromeLayoutProvider::Get();
- SetLayoutManager(
- new views::BoxLayout(views::BoxLayout::kVertical,
- provider->GetDistanceMetric(
- DISTANCE_DIALOG_BUTTON_MARGIN),
- provider->GetDistanceMetric(
- DISTANCE_PANEL_CONTENT_MARGIN),
- 0));
+ SetLayoutManager(new views::BoxLayout(
+ views::BoxLayout::kVertical,
+ provider->GetDistanceMetric(
+ views::DISTANCE_DIALOG_CONTENTS_HORIZONTAL_MARGIN),
+ provider->GetDistanceMetric(
+ views::DISTANCE_DIALOG_CONTENTS_VERTICAL_MARGIN),
+ 0));
views::StyledLabel* dialog_label =
new views::StyledLabel(controller_->GetMainText(), /*listener=*/nullptr);

Powered by Google App Engine
This is Rietveld 408576698