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

Unified Diff: chrome/browser/ui/views/harmony/chrome_typography.cc

Issue 2801583002: Use views::style for buttons, bootstrap ash_typography to do so. (Closed)
Patch Set: placate gn check. new_avatar_button now just avatar_button Created 3 years, 7 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/harmony/chrome_typography.cc
diff --git a/chrome/browser/ui/views/harmony/chrome_typography.cc b/chrome/browser/ui/views/harmony/chrome_typography.cc
index f128f7c969f0c934839eb435b916725d789ef192..5fc70512a2245318d268b10dda05f7a2aed41e19 100644
--- a/chrome/browser/ui/views/harmony/chrome_typography.cc
+++ b/chrome/browser/ui/views/harmony/chrome_typography.cc
@@ -16,6 +16,10 @@ const gfx::FontList& LegacyTypographyProvider::GetFont(int text_context,
gfx::Font::Weight font_weight;
GetDefaultFont(text_context, text_style, &size_delta, &font_weight);
+#if defined(USE_ASH)
+ ash::ApplyAshFontStyles(text_context, text_style, &size_delta, &font_weight);
+#endif
+
switch (text_context) {
case CONTEXT_HEADLINE:
size_delta = kHeadlineDelta;

Powered by Google App Engine
This is Rietveld 408576698