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

Side by Side Diff: chrome/browser/autofill/personal_data_manager_mac.mm

Issue 5849001: Move GUID utils to src/chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome/common Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/autofill/personal_data_manager.h" 5 #include "chrome/browser/autofill/personal_data_manager.h"
6 6
7 #import <AddressBook/AddressBook.h> 7 #import <AddressBook/AddressBook.h>
8 8
9 #include "app/l10n_util_mac.h" 9 #include "app/l10n_util_mac.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/scoped_vector.h" 12 #include "base/scoped_vector.h"
13 #include "base/sys_string_conversions.h" 13 #include "base/sys_string_conversions.h"
14 #include "chrome/browser/autofill/autofill_profile.h" 14 #include "chrome/browser/autofill/autofill_profile.h"
15 #include "chrome/browser/autofill/phone_number.h" 15 #include "chrome/browser/autofill/phone_number.h"
16 #include "chrome/browser/guid.h" 16 #include "chrome/common/guid.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 18
19 namespace { 19 namespace {
20 20
21 // This implementation makes use of the Address Book API. Profiles are 21 // This implementation makes use of the Address Book API. Profiles are
22 // generated that correspond to addresses in the "me" card that reside in the 22 // generated that correspond to addresses in the "me" card that reside in the
23 // user's Address Book. The caller passes a vector of profiles into the 23 // user's Address Book. The caller passes a vector of profiles into the
24 // the constructer and then initiate the fetch from the Mac Address Book "me" 24 // the constructer and then initiate the fetch from the Mac Address Book "me"
25 // card using the main |GetAddressBookMeCard()| method. This clears any 25 // card using the main |GetAddressBookMeCard()| method. This clears any
26 // existing addresses and populates new addresses derived from the data found 26 // existing addresses and populates new addresses derived from the data found
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 252 }
253 } 253 }
254 254
255 } // namespace 255 } // namespace
256 256
257 // Populate |auxiliary_profiles_| with the Address Book data. 257 // Populate |auxiliary_profiles_| with the Address Book data.
258 void PersonalDataManager::LoadAuxiliaryProfiles() { 258 void PersonalDataManager::LoadAuxiliaryProfiles() {
259 AuxiliaryProfilesImpl impl(&auxiliary_profiles_); 259 AuxiliaryProfilesImpl impl(&auxiliary_profiles_);
260 impl.GetAddressBookMeCard(); 260 impl.GetAddressBookMeCard();
261 } 261 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/credit_card.cc ('k') | chrome/browser/autofill/personal_data_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698