OLD | NEW |
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/autofill_profile.h" | 5 #include "chrome/browser/autofill/autofill_profile.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
14 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/autofill/address.h" | 16 #include "chrome/browser/autofill/address.h" |
17 #include "chrome/browser/autofill/autofill_manager.h" | 17 #include "chrome/browser/autofill/autofill_manager.h" |
18 #include "chrome/browser/autofill/contact_info.h" | 18 #include "chrome/browser/autofill/contact_info.h" |
19 #include "chrome/browser/autofill/fax_number.h" | 19 #include "chrome/browser/autofill/fax_number.h" |
20 #include "chrome/browser/autofill/home_address.h" | 20 #include "chrome/browser/autofill/home_address.h" |
21 #include "chrome/browser/autofill/home_phone_number.h" | 21 #include "chrome/browser/autofill/home_phone_number.h" |
22 #include "chrome/browser/guid.h" | 22 #include "chrome/common/guid.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 void InitPersonalInfo(FormGroupMap* personal_info) { | 27 void InitPersonalInfo(FormGroupMap* personal_info) { |
28 (*personal_info)[AutoFillType::CONTACT_INFO] = new ContactInfo(); | 28 (*personal_info)[AutoFillType::CONTACT_INFO] = new ContactInfo(); |
29 (*personal_info)[AutoFillType::PHONE_HOME] = new HomePhoneNumber(); | 29 (*personal_info)[AutoFillType::PHONE_HOME] = new HomePhoneNumber(); |
30 (*personal_info)[AutoFillType::PHONE_FAX] = new FaxNumber(); | 30 (*personal_info)[AutoFillType::PHONE_FAX] = new FaxNumber(); |
31 (*personal_info)[AutoFillType::ADDRESS_HOME] = new HomeAddress(); | 31 (*personal_info)[AutoFillType::ADDRESS_HOME] = new HomeAddress(); |
32 } | 32 } |
(...skipping 454 matching lines...) Loading... |
487 << UTF16ToUTF8(profile.GetFieldText(AutoFillType(ADDRESS_HOME_ZIP))) | 487 << UTF16ToUTF8(profile.GetFieldText(AutoFillType(ADDRESS_HOME_ZIP))) |
488 << " " | 488 << " " |
489 << UTF16ToUTF8(profile.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY))) | 489 << UTF16ToUTF8(profile.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY))) |
490 << " " | 490 << " " |
491 << UTF16ToUTF8(profile.GetFieldText(AutoFillType( | 491 << UTF16ToUTF8(profile.GetFieldText(AutoFillType( |
492 PHONE_HOME_WHOLE_NUMBER))) | 492 PHONE_HOME_WHOLE_NUMBER))) |
493 << " " | 493 << " " |
494 << UTF16ToUTF8(profile.GetFieldText(AutoFillType( | 494 << UTF16ToUTF8(profile.GetFieldText(AutoFillType( |
495 PHONE_FAX_WHOLE_NUMBER))); | 495 PHONE_FAX_WHOLE_NUMBER))); |
496 } | 496 } |
OLD | NEW |