| 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 "chrome/browser/autofill/autofill_ie_toolbar_import_win.h" | 5 #include "components/autofill/browser/autofill_ie_toolbar_import_win.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "base/win/registry.h" | 16 #include "base/win/registry.h" |
| 17 #include "chrome/browser/autofill/autofill_country.h" | 17 #include "components/autofill/browser/autofill_country.h" |
| 18 #include "chrome/browser/autofill/autofill_profile.h" | 18 #include "components/autofill/browser/autofill_profile.h" |
| 19 #include "chrome/browser/autofill/credit_card.h" | 19 #include "components/autofill/browser/credit_card.h" |
| 20 #include "chrome/browser/autofill/crypto/rc4_decryptor.h" | 20 #include "components/autofill/browser/crypto/rc4_decryptor.h" |
| 21 #include "chrome/browser/autofill/field_types.h" | 21 #include "components/autofill/browser/field_types.h" |
| 22 #include "chrome/browser/autofill/form_group.h" | 22 #include "components/autofill/browser/form_group.h" |
| 23 #include "chrome/browser/autofill/personal_data_manager.h" | 23 #include "components/autofill/browser/personal_data_manager.h" |
| 24 #include "chrome/browser/autofill/personal_data_manager_observer.h" | 24 #include "components/autofill/browser/personal_data_manager_observer.h" |
| 25 #include "chrome/browser/autofill/phone_number.h" | 25 #include "components/autofill/browser/phone_number.h" |
| 26 #include "chrome/browser/autofill/phone_number_i18n.h" | 26 #include "components/autofill/browser/phone_number_i18n.h" |
| 27 #include "sync/util/data_encryption_win.h" | 27 #include "sync/util/data_encryption_win.h" |
| 28 | 28 |
| 29 using base::win::RegKey; | 29 using base::win::RegKey; |
| 30 | 30 |
| 31 // Forward declaration. This function is not in unnamed namespace as it | 31 // Forward declaration. This function is not in unnamed namespace as it |
| 32 // is referenced in the unittest. | 32 // is referenced in the unittest. |
| 33 bool ImportCurrentUserProfiles(std::vector<AutofillProfile>* profiles, | 33 bool ImportCurrentUserProfiles(std::vector<AutofillProfile>* profiles, |
| 34 std::vector<CreditCard>* credit_cards); | 34 std::vector<CreditCard>* credit_cards); |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } | 286 } |
| 287 | 287 |
| 288 bool ImportAutofillDataWin(PersonalDataManager* pdm) { | 288 bool ImportAutofillDataWin(PersonalDataManager* pdm) { |
| 289 // In incognito mode we do not have PDM - and we should not import anything. | 289 // In incognito mode we do not have PDM - and we should not import anything. |
| 290 if (!pdm) | 290 if (!pdm) |
| 291 return false; | 291 return false; |
| 292 AutofillImporter *importer = new AutofillImporter(pdm); | 292 AutofillImporter *importer = new AutofillImporter(pdm); |
| 293 // importer will self delete. | 293 // importer will self delete. |
| 294 return importer->ImportProfiles(); | 294 return importer->ImportProfiles(); |
| 295 } | 295 } |
| OLD | NEW |