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

Unified Diff: ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.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/contextual_search/contextual_search_promo_view.mm
diff --git a/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm b/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
index d7209692c03e32a51577b71cb8e38c95ab330772..f1564002afca8ba3625a4dcec4733f1d38b55f6f 100644
--- a/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
+++ b/ios/chrome/browser/ui/contextual_search/contextual_search_promo_view.mm
@@ -12,7 +12,7 @@
#include "ios/chrome/common/string_util.h"
#include "ios/chrome/grit/ios_strings.h"
#import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.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.h"
#include "url/gurl.h"
@@ -95,7 +95,7 @@ const CGFloat kCloseDuration = ios::material::kDuration1;
NSDictionary* attributes = @{
NSParagraphStyleAttributeName : paragraphStyle,
NSFontAttributeName :
- [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:kTextFontSize],
+ [[MDCTypography fontLoader] regularFontOfSize:kTextFontSize],
NSForegroundColorAttributeName :
[UIColor colorWithWhite:kTextColorGrayShade alpha:1]
};
@@ -111,7 +111,7 @@ const CGFloat kCloseDuration = ios::material::kDuration1;
text.numberOfLines = 0;
UIFont* buttonFont =
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:kButtonFontSize];
+ [[MDCTypography fontLoader] mediumFontOfSize:kButtonFontSize];
// Create accept and decline buttons with dimensions defined by the
// minimum height and width constants.

Powered by Google App Engine
This is Rietveld 408576698