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

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

Issue 7648022: Added kAPPhoneMobileLabel and kABPhoneMainLabel in GetAddressBookPhoneNumbers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/personal_data_manager_mac.mm
diff --git a/chrome/browser/autofill/personal_data_manager_mac.mm b/chrome/browser/autofill/personal_data_manager_mac.mm
index 253fcdf3e1b1a5dcfc93eecda972b676e089dbc7..66d68f9267bf4167bdfe697289623c65325a0ef7 100644
--- a/chrome/browser/autofill/personal_data_manager_mac.mm
+++ b/chrome/browser/autofill/personal_data_manager_mac.mm
@@ -214,6 +214,11 @@ void AuxiliaryProfilesImpl::GetAddressBookPhoneNumbers(
string16 workFax = base::SysNSStringToUTF16(
[phoneNumbers valueAtIndex:reverseK]);
profile->SetInfo(PHONE_FAX_WHOLE_NUMBER, workFax);
+ } else if ([phoneLabelRaw isEqualToString:kABPhoneMobileLabel] ||
+ [phoneLabelRaw isEqualToString:kABPhoneMainLabel]) {
+ string16 phone = base::SysNSStringToUTF16(
+ [phoneNumbers valueAtIndex:reverseK]);
+ profile->SetInfo(PHONE_HOME_WHOLE_NUMBER, phone);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698