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

Unified Diff: ash/system/chromeos/audio/tray_audio.cc

Issue 140693017: 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
« no previous file with comments | « ash/ime/candidate_view.cc ('k') | ash/system/chromeos/network/tray_sms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/audio/tray_audio.cc
diff --git a/ash/system/chromeos/audio/tray_audio.cc b/ash/system/chromeos/audio/tray_audio.cc
index 01aa64de37009cd1044c5cebffb41f559ad66f9d..c1721f636918fe51f977c63f07451313f9bb313d 100644
--- a/ash/system/chromeos/audio/tray_audio.cc
+++ b/ash/system/chromeos/audio/tray_audio.cc
@@ -488,7 +488,10 @@ class AudioDetailedView : public TrayDetailsView,
}
void AddScrollListInfoItem(const base::string16& text) {
- views::Label* label = new views::Label(text);
+ views::Label* label = new views::Label(
+ text,
+ ui::ResourceBundle::GetSharedInstance().GetFontList(
+ ui::ResourceBundle::BoldFont));
// Align info item with checkbox items
int margin = kTrayPopupPaddingHorizontal +
@@ -507,8 +510,6 @@ class AudioDetailedView : public TrayDetailsView,
right_margin));
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetEnabledColor(SkColorSetARGB(192, 0, 0, 0));
- label->SetFontList(label->font_list().DeriveFontListWithSizeDeltaAndStyle(
- 0, gfx::Font::BOLD));
scroll_content()->AddChildView(label);
}
« no previous file with comments | « ash/ime/candidate_view.cc ('k') | ash/system/chromeos/network/tray_sms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698