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

Unified Diff: chrome/browser/autofill/autofill_text_field_mac.mm

Issue 2835007: Revert 49984 - patch from issue 2762014 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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_text_field_mac.mm
===================================================================
--- chrome/browser/autofill/autofill_text_field_mac.mm (revision 49999)
+++ chrome/browser/autofill/autofill_text_field_mac.mm (working copy)
@@ -28,12 +28,10 @@
return becoming;
}
-- (void)setObjectValue:(id<NSCopying>)object {
-// FIXME
- if (isCreditCardField_ &&
- [(NSObject*)object isKindOfClass:[NSString class]]) {
+- (void)setObjectValue:(id)object {
+ if (isCreditCardField_ && [object isKindOfClass:[NSString class]]) {
// Obfuscate the number.
- NSString* string = (NSString*)object; // FIXME: NSMutableCopying
+ NSString* string = object;
CreditCard card;
card.SetInfo(AutoFillType(CREDIT_CARD_NUMBER),
base::SysNSStringToUTF16(string));
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac.mm ('k') | chrome/browser/chrome_browser_application_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698