OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/core/browser/personal_data_manager.h" | 5 #include "components/autofill/core/browser/personal_data_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/i18n/case_conversion.h" | 14 #include "base/i18n/case_conversion.h" |
15 #include "base/i18n/timezone.h" | 15 #include "base/i18n/timezone.h" |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/profiler/scoped_tracker.h" | 16 #include "base/profiler/scoped_tracker.h" |
18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
20 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
21 #include "build/build_config.h" | 20 #include "build/build_config.h" |
22 #include "components/autofill/core/browser/address_i18n.h" | 21 #include "components/autofill/core/browser/address_i18n.h" |
23 #include "components/autofill/core/browser/autofill-inl.h" | 22 #include "components/autofill/core/browser/autofill-inl.h" |
24 #include "components/autofill/core/browser/autofill_country.h" | 23 #include "components/autofill/core/browser/autofill_country.h" |
25 #include "components/autofill/core/browser/autofill_experiments.h" | 24 #include "components/autofill/core/browser/autofill_experiments.h" |
26 #include "components/autofill/core/browser/autofill_field.h" | 25 #include "components/autofill/core/browser/autofill_field.h" |
27 #include "components/autofill/core/browser/autofill_metrics.h" | 26 #include "components/autofill/core/browser/autofill_metrics.h" |
28 #include "components/autofill/core/browser/country_data.h" | 27 #include "components/autofill/core/browser/country_data.h" |
29 #include "components/autofill/core/browser/country_names.h" | 28 #include "components/autofill/core/browser/country_names.h" |
30 #include "components/autofill/core/browser/form_structure.h" | 29 #include "components/autofill/core/browser/form_structure.h" |
31 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 30 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
32 #include "components/autofill/core/browser/phone_number.h" | 31 #include "components/autofill/core/browser/phone_number.h" |
33 #include "components/autofill/core/browser/phone_number_i18n.h" | 32 #include "components/autofill/core/browser/phone_number_i18n.h" |
34 #include "components/autofill/core/browser/validation.h" | 33 #include "components/autofill/core/browser/validation.h" |
35 #include "components/autofill/core/common/autofill_pref_names.h" | 34 #include "components/autofill/core/common/autofill_pref_names.h" |
36 #include "components/autofill/core/common/autofill_switches.h" | 35 #include "components/autofill/core/common/autofill_switches.h" |
37 #include "components/autofill/core/common/autofill_util.h" | 36 #include "components/autofill/core/common/autofill_util.h" |
| 37 #include "components/prefs/pref_service.h" |
38 #include "components/signin/core/browser/account_tracker_service.h" | 38 #include "components/signin/core/browser/account_tracker_service.h" |
39 #include "components/signin/core/browser/signin_manager.h" | 39 #include "components/signin/core/browser/signin_manager.h" |
40 #include "components/signin/core/common/signin_pref_names.h" | 40 #include "components/signin/core/common/signin_pref_names.h" |
41 #include "components/variations/variations_associated_data.h" | 41 #include "components/variations/variations_associated_data.h" |
42 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da
ta.h" | 42 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da
ta.h" |
43 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fo
rmatter.h" | 43 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fo
rmatter.h" |
44 | 44 |
45 namespace autofill { | 45 namespace autofill { |
46 namespace { | 46 namespace { |
47 | 47 |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 web_profiles().end()); | 1415 web_profiles().end()); |
1416 if (IsExperimentalWalletIntegrationEnabled() && | 1416 if (IsExperimentalWalletIntegrationEnabled() && |
1417 pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) { | 1417 pref_service_->GetBoolean(prefs::kAutofillWalletImportEnabled)) { |
1418 profiles_.insert( | 1418 profiles_.insert( |
1419 profiles_.end(), server_profiles_.begin(), server_profiles_.end()); | 1419 profiles_.end(), server_profiles_.begin(), server_profiles_.end()); |
1420 } | 1420 } |
1421 return profiles_; | 1421 return profiles_; |
1422 } | 1422 } |
1423 | 1423 |
1424 } // namespace autofill | 1424 } // namespace autofill |
OLD | NEW |