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

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

Issue 152343006: Clean-up: Replaces obsolete Font/FontList methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 10 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/first_run_bubble.cc
diff --git a/chrome/browser/ui/views/first_run_bubble.cc b/chrome/browser/ui/views/first_run_bubble.cc
index 9f4150b7eea3b4325a1aa94a71fb39ff9376114e..1c3063b9bdd0b11c456783bdbd1233c656dacb80 100644
--- a/chrome/browser/ui/views/first_run_bubble.cc
+++ b/chrome/browser/ui/views/first_run_bubble.cc
@@ -41,11 +41,12 @@ void FirstRunBubble::Init() {
const gfx::FontList& original_font_list =
rb.GetFontList(ui::ResourceBundle::MediumFont);
- views::Label* title = new views::Label(l10n_util::GetStringFUTF16(
- IDS_FR_BUBBLE_TITLE, browser_ ?
- GetDefaultSearchEngineName(browser_->profile()) : base::string16()));
- title->SetFontList(original_font_list.DeriveFontListWithSizeDeltaAndStyle(
- 2, gfx::Font::BOLD));
+ views::Label* title = new views::Label(
+ l10n_util::GetStringFUTF16(
+ IDS_FR_BUBBLE_TITLE,
+ browser_ ? GetDefaultSearchEngineName(browser_->profile())
+ : base::string16()),
+ original_font_list.Derive(2, gfx::Font::BOLD));
views::Link* change =
new views::Link(l10n_util::GetStringUTF16(IDS_FR_BUBBLE_CHANGE));
@@ -53,8 +54,8 @@ void FirstRunBubble::Init() {
change->set_listener(this);
views::Label* subtext =
- new views::Label(l10n_util::GetStringUTF16(IDS_FR_BUBBLE_SUBTEXT));
- subtext->SetFontList(original_font_list);
+ new views::Label(l10n_util::GetStringUTF16(IDS_FR_BUBBLE_SUBTEXT),
+ original_font_list);
views::GridLayout* layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);

Powered by Google App Engine
This is Rietveld 408576698