| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/browser/personal_data_manager.h" | 5 #include "components/autofill/browser/personal_data_manager.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #import <AddressBook/AddressBook.h> | 9 #import <AddressBook/AddressBook.h> |
| 10 | 10 |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/guid.h" | 12 #include "base/guid.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #import "base/mac/scoped_nsexception_enabler.h" | 14 #import "base/mac/scoped_nsexception_enabler.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
| 18 #include "base/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
| 19 #include "components/autofill/browser/autofill_country.h" | 19 #include "components/autofill/browser/autofill_country.h" |
| 20 #include "components/autofill/browser/autofill_profile.h" | 20 #include "components/autofill/browser/autofill_profile.h" |
| 21 #include "components/autofill/browser/phone_number.h" | 21 #include "components/autofill/browser/phone_number.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "ui/base/l10n/l10n_util_mac.h" | 23 #include "ui/base/l10n/l10n_util_mac.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // This implementation makes use of the Address Book API. Profiles are | 27 // This implementation makes use of the Address Book API. Profiles are |
| 28 // generated that correspond to addresses in the "me" card that reside in the | 28 // generated that correspond to addresses in the "me" card that reside in the |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace | 256 } // namespace |
| 257 | 257 |
| 258 // Populate |auxiliary_profiles_| with the Address Book data. | 258 // Populate |auxiliary_profiles_| with the Address Book data. |
| 259 void PersonalDataManager::LoadAuxiliaryProfiles() { | 259 void PersonalDataManager::LoadAuxiliaryProfiles() { |
| 260 AuxiliaryProfilesImpl impl(&auxiliary_profiles_); | 260 AuxiliaryProfilesImpl impl(&auxiliary_profiles_); |
| 261 impl.GetAddressBookMeCard(); | 261 impl.GetAddressBookMeCard(); |
| 262 } | 262 } |
| OLD | NEW |