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

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

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: fix windows 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 7927b28ae21bc33055adb3df9515a50a9e674661..82cba3f20e24b0b24ac4c166262f5184c91156e4 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::TextContext::DIALOG_TITLE);
label->SetMultiLine(true);
label->SizeToFit(200);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);

Powered by Google App Engine
This is Rietveld 408576698