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

Unified Diff: chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h

Issue 2878050: AutoFill credit card settings dialog should display obfuscated number in edit field (Closed)
Patch Set: Created 10 years, 5 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: chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
diff --git a/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h b/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
index 6fa281df6d95a697bac179e0872d38ef096f52bd..dd9461f85f4c0c3e553ccd63907040863df89c56 100644
--- a/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
+++ b/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
@@ -33,6 +33,10 @@ typedef NSInteger AutoFillCreditCardMode;
// "New credit card" or "Edit credit card" depending on context.
IBOutlet NSTextField* caption_;
+ // The credit card number field. This is here for unit testing purposes.
+ // The text of this field is obfuscated until edited.
+ IBOutlet NSTextField* creditCardNumberField_;
+
// The primary model for this controller. The model is instantiated
// from within |initWithCreditCard:|. We do not hold it as a scoped_nsobject
// because it is exposed as a KVO compliant property.
@@ -79,4 +83,9 @@ typedef NSInteger AutoFillCreditCardMode;
@end
+// Interface exposed for unit testing.
+@interface AutoFillCreditCardSheetController (ExposedForUnitTests)
+- (NSTextField*)creditCardNumberField;
+@end
+
#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CREDIT_CARD_SHEET_CONTROLLER_MAC_
« no previous file with comments | « chrome/app/nibs/AutoFillCreditCardSheet.xib ('k') | chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698