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

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

Issue 2883393003: [Payments] No longer resize Autofill assets in Payments/Autofill UI (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm b/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
index 1aaa243465445b9c0249b662bf7ef7d7a789a621..1ece7ada972a4071cfd518b9128d0247d23a12d7 100644
--- a/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
@@ -43,8 +43,6 @@ using ::AutofillTypeFromAutofillUIType;
NSString* const kAutofillCreditCardEditCollectionViewId =
@"kAutofillCreditCardEditCollectionViewId";
-const CGFloat kCardIssuerNetworkIconDimension = 30.0;
-
typedef NS_ENUM(NSInteger, SectionIdentifier) {
SectionIdentifierFields = kSectionIdentifierEnumZero,
SectionIdentifierCopiedToChrome,
@@ -321,11 +319,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
if (network != autofill::kGenericCard) {
int resourceID =
autofill::data_util::GetPaymentRequestData(network).icon_resource_id;
- // Resize and set the card issuer network icon.
- CGFloat dimension = kCardIssuerNetworkIconDimension;
- return ResizeImage(NativeImage(resourceID),
- CGSizeMake(dimension, dimension),
- ProjectionMode::kAspectFillNoClipping);
+ // Return the card issuer network icon.
+ return NativeImage(resourceID);
} else {
return nil;
}
« no previous file with comments | « ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698