| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/api/autofill_private/autofill_util.h" | 5 #include "chrome/browser/extensions/api/autofill_private/autofill_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/prefs/pref_service.h" | |
| 11 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" | 13 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/extensions/api/autofill_private.h" | 15 #include "chrome/common/extensions/api/autofill_private.h" |
| 17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 18 #include "components/autofill/core/browser/autofill_profile.h" | 17 #include "components/autofill/core/browser/autofill_profile.h" |
| 19 #include "components/autofill/core/browser/autofill_type.h" | 18 #include "components/autofill/core/browser/autofill_type.h" |
| 20 #include "components/autofill/core/browser/credit_card.h" | 19 #include "components/autofill/core/browser/credit_card.h" |
| 21 #include "components/autofill/core/browser/field_types.h" | 20 #include "components/autofill/core/browser/field_types.h" |
| 21 #include "components/prefs/pref_service.h" |
| 22 #include "grit/components_strings.h" | 22 #include "grit/components_strings.h" |
| 23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
| 24 | 24 |
| 25 namespace autofill_private = extensions::api::autofill_private; | 25 namespace autofill_private = extensions::api::autofill_private; |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Get the multi-valued element for |type| and return it as a |vector|. | 29 // Get the multi-valued element for |type| and return it as a |vector|. |
| 30 // TODO(khorimoto): remove this function since multi-valued types are | 30 // TODO(khorimoto): remove this function since multi-valued types are |
| 31 // deprecated. | 31 // deprecated. |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 CreditCardToCreditCardEntry(*card).release(); | 182 CreditCardToCreditCardEntry(*card).release(); |
| 183 list->push_back(linked_ptr<autofill_private::CreditCardEntry>(entry)); | 183 list->push_back(linked_ptr<autofill_private::CreditCardEntry>(entry)); |
| 184 } | 184 } |
| 185 | 185 |
| 186 return list; | 186 return list; |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace autofill_util | 189 } // namespace autofill_util |
| 190 | 190 |
| 191 } // namespace extensions | 191 } // namespace extensions |
| OLD | NEW |