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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc

Issue 152343006: Clean-up: Replaces obsolete Font/FontList methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index e7cc9dd6b46a241a090f50647f025f7c66854df6..9d7fae9677fdb33a8c5db2dca4f8baa0376198b1 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -110,14 +110,12 @@ AutofillPopupControllerImpl::AutofillPopupControllerImpl(
base::Bind(&AutofillPopupControllerImpl::HandleKeyPressEvent,
base::Unretained(this)));
#if !defined(OS_ANDROID)
- subtext_font_list_ = name_font_list_.DeriveFontListWithSizeDelta(
- kLabelFontSizeDelta);
+ subtext_font_list_ = name_font_list_.DeriveWithSizeDelta(kLabelFontSizeDelta);
#if defined(OS_MACOSX)
// There is no italic version of the system font.
warning_font_list_ = name_font_list_;
#else
- warning_font_list_ = name_font_list_.DeriveFontListWithSizeDeltaAndStyle(
- 0, gfx::Font::ITALIC);
+ warning_font_list_ = name_font_list_.DeriveWithStyle(gfx::Font::ITALIC);
#endif
#endif
}

Powered by Google App Engine
This is Rietveld 408576698