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

Unified Diff: ios/chrome/browser/ui/autofill/cells/storage_switch_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/storage_switch_item.mm
diff --git a/ios/chrome/browser/ui/autofill/cells/storage_switch_item.mm b/ios/chrome/browser/ui/autofill/cells/storage_switch_item.mm
index 560e4c83e2ae0b85e2944b2a6f50d295b03d233b..eb34c2ead0da17fdf199454c28eee54fec6e8408 100644
--- a/ios/chrome/browser/ui/autofill/cells/storage_switch_item.mm
+++ b/ios/chrome/browser/ui/autofill/cells/storage_switch_item.mm
@@ -9,7 +9,7 @@
#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
#import "ios/chrome/browser/ui/uikit_ui_util.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"
#include "ui/base/l10n/l10n_util_mac.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -73,8 +73,7 @@ const CGFloat kTooltipButtonTrailingSpacing = 30;
_textLabel.text = l10n_util::GetNSString(
IDS_AUTOFILL_CARD_UNMASK_PROMPT_STORAGE_CHECKBOX);
- _textLabel.font =
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
+ _textLabel.font = [[MDCTypography fontLoader] mediumFontOfSize:14];
_textLabel.textColor = [[MDCPalette greyPalette] tint500];
_textLabel.numberOfLines = 0;
[_textLabel
« no previous file with comments | « ios/chrome/browser/ui/autofill/cells/status_item.mm ('k') | ios/chrome/browser/ui/autofill/storage_switch_tooltip.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698