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

Unified Diff: ios/chrome/browser/ui/settings/translate_collection_view_controller.mm

Issue 2768933005: Use CollectionViewTextItem instead of a cast (Closed)
Patch Set: Fix payment Created 3 years, 9 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/settings/translate_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm b/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm
index bd4a0f97198ad62a8ef5310841cfbd9a0cc8d1eb..2cf932994f17f1609999e6ade65afb51e57eb822 100644
--- a/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/translate_collection_view_controller.mm
@@ -107,6 +107,8 @@ NSString* const kTranslateSettingsCategory = @"ChromeTranslateSettings";
initWithType:ItemTypeResetTranslate] autorelease];
resetTranslate.text = l10n_util::GetNSString(IDS_IOS_TRANSLATE_SETTING_RESET);
resetTranslate.accessibilityTraits |= UIAccessibilityTraitButton;
+ resetTranslate.textFont =
+ [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
lpromero 2017/03/24 09:28:24 Idem for Roboto→Typography.
gambard 2017/03/24 09:49:03 Done.
[model addItem:resetTranslate
toSectionWithIdentifier:SectionIdentifierTranslate];
@@ -140,13 +142,6 @@ NSString* const kTranslateSettingsCategory = @"ChromeTranslateSettings";
forControlEvents:UIControlEventValueChanged];
break;
}
- case ItemTypeResetTranslate: {
- MDCCollectionViewTextCell* textCell =
- base::mac::ObjCCastStrict<MDCCollectionViewTextCell>(cell);
- textCell.textLabel.font =
- [[MDFRobotoFontLoader sharedInstance] mediumFontOfSize:14];
- break;
- }
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698