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

Unified Diff: ios/chrome/browser/ui/autofill/cells/status_item.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/autofill/cells/status_item.mm
diff --git a/ios/chrome/browser/ui/autofill/cells/status_item.mm b/ios/chrome/browser/ui/autofill/cells/status_item.mm
index a96644724394d252c6a96a221606ac09b6bc1d1e..b26a595e7a367ca255e854ed025e3c52a77fe5be 100644
--- a/ios/chrome/browser/ui/autofill/cells/status_item.mm
+++ b/ios/chrome/browser/ui/autofill/cells/status_item.mm
@@ -10,7 +10,7 @@
#include "ios/chrome/grit/ios_theme_resources.h"
#import "ios/third_party/material_components_ios/src/components/ActivityIndicator/src/MaterialActivityIndicator.h"
#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.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"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -88,8 +88,7 @@ const CGFloat kHorizontalPadding = 16;
[verticalCenteringView addSubview:_errorImageView];
_textLabel = [[UILabel alloc] init];
- _textLabel.font =
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:16];
+ _textLabel.font = [[MDCTypography fontLoader] mediumFontOfSize:16];
_textLabel.numberOfLines = 0;
_textLabel.lineBreakMode = NSLineBreakByWordWrapping;
// The label's position will be centered with Auto Layout but this ensures
« no previous file with comments | « ios/chrome/browser/ui/autofill/cells/cvc_item.mm ('k') | ios/chrome/browser/ui/autofill/cells/storage_switch_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698