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

Unified Diff: chrome/browser/first_run/try_chrome_dialog_view.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) Created 3 years, 9 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/first_run/try_chrome_dialog_view.cc
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.cc b/chrome/browser/first_run/try_chrome_dialog_view.cc
index da23c9afb9a59532d6858de843871845a992facc..4420e6362d7d757a0a4919b9051b30d7fdf3b86a 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.cc
+++ b/chrome/browser/first_run/try_chrome_dialog_view.cc
@@ -178,9 +178,9 @@ TryChromeDialogView::Result TryChromeDialogView::ShowModal(
NOTREACHED() << "Cannot determine which headline to show.";
return DIALOG_ERROR;
}
- views::Label* label = new views::Label(
- l10n_util::GetStringUTF16(experiment.heading),
- rb.GetFontList(ui::ResourceBundle::MediumFont));
+ views::Label* label =
+ new views::Label(l10n_util::GetStringUTF16(experiment.heading),
+ views::style::CONTEXT_DIALOG_TITLE);
label->SetMultiLine(true);
label->SizeToFit(200);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);

Powered by Google App Engine
This is Rietveld 408576698