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

Unified Diff: ios/chrome/browser/ui/downloads/download_manager_controller.mm

Issue 2912863005: Use MDCTypography instead of MDFRobotoFontLoader directly. (Closed)
Patch Set: Update target value in unit test 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/downloads/download_manager_controller.mm
diff --git a/ios/chrome/browser/ui/downloads/download_manager_controller.mm b/ios/chrome/browser/ui/downloads/download_manager_controller.mm
index 4895408df2b40d55084dc64baceb08d6e37aeeaf..5ce9e5471b5edbaa648a03fea61ff75d293f1182 100644
--- a/ios/chrome/browser/ui/downloads/download_manager_controller.mm
+++ b/ios/chrome/browser/ui/downloads/download_manager_controller.mm
@@ -35,7 +35,6 @@
#import "ios/third_party/material_components_ios/src/components/ActivityIndicator/src/MaterialActivityIndicator.h"
#import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.h"
#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
-#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
#include "ios/web/public/browser_state.h"
#include "ios/web/public/web_state/web_state.h"
#include "ios/web/public/web_thread.h"
@@ -869,7 +868,7 @@ class DownloadContentDelegate : public URLFetcherDelegate {
[_timeLeftLabel setFont:[MDCTypography captionFont]];
[_fileNameLabel setFont:[MDCTypography body1Font]];
[_errorOrSizeLabel
- setFont:[[MDFRobotoFontLoader sharedInstance] regularFontOfSize:10]];
+ setFont:[[MDCTypography fontLoader] regularFontOfSize:10]];
}
}

Powered by Google App Engine
This is Rietveld 408576698