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

Unified Diff: ios/chrome/browser/ui/history/tab_history_cell.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Tentative fix for ManualTextFramerTest 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: ios/chrome/browser/ui/history/tab_history_cell.mm
diff --git a/ios/chrome/browser/ui/history/tab_history_cell.mm b/ios/chrome/browser/ui/history/tab_history_cell.mm
index b2d708ad30bb6eb9dae3eea766b4a3a157e45efc..a0a0efc93360b448558a4268eb3c30d4cb1683a5 100644
--- a/ios/chrome/browser/ui/history/tab_history_cell.mm
+++ b/ios/chrome/browser/ui/history/tab_history_cell.mm
@@ -7,7 +7,7 @@
#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/ui/ui_util.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
-#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
+#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
#include "ios/web/public/navigation_item.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -65,8 +65,7 @@ NS_INLINE CGFloat HeaderLineRadius() {
- (void)commonInitialization {
_titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
[_titleLabel setTextColor:UIColorFromRGB(kTitleTextRGB)];
- [_titleLabel
- setFont:[[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16]];
+ [_titleLabel setFont:[[MDCTypography fontLoader] regularFontOfSize:16]];
[[self contentView] addSubview:_titleLabel];
}
« no previous file with comments | « ios/chrome/browser/ui/history/history_entry_item.mm ('k') | ios/chrome/browser/ui/history/tab_history_popup_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698