Clean-up: Replaces obsolete Font/FontList methods.

Replaces obsolete methods of gfx::Font and gfx::FontList with new ones.

BUG=265485
TEST=Run ui_unittests.

Review URL: https://codereview.chromium.org/152733002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248887 0039d316-1c4b-4281-b951-d872f2087c98
parent 177e696a
...@@ -326,7 +326,7 @@ NotificationView::NotificationView(MessageCenterController* controller, ...@@ -326,7 +326,7 @@ NotificationView::NotificationView(MessageCenterController* controller,
title_view_ = NULL; title_view_ = NULL;
if (!notification.title().empty()) { if (!notification.title().empty()) {
const gfx::FontList& font_list = const gfx::FontList& font_list =
default_label_font_list.DeriveFontListWithSizeDelta(2); default_label_font_list.DeriveWithSizeDelta(2);
int padding = kTitleLineHeight - font_list.GetHeight(); int padding = kTitleLineHeight - font_list.GetHeight();
title_view_ = new BoundedLabel( title_view_ = new BoundedLabel(
gfx::TruncateString(notification.title(), kTitleCharacterLimit), gfx::TruncateString(notification.title(), kTitleCharacterLimit),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment