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 "components/autofill/browser/autofill_ie_toolbar_import_win.h" | 5 #include "components/autofill/core/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/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/win/registry.h" | 16 #include "base/win/registry.h" |
17 #include "components/autofill/browser/autofill_country.h" | 17 #include "components/autofill/core/browser/autofill_country.h" |
18 #include "components/autofill/browser/autofill_profile.h" | 18 #include "components/autofill/core/browser/autofill_profile.h" |
19 #include "components/autofill/browser/credit_card.h" | 19 #include "components/autofill/core/browser/credit_card.h" |
20 #include "components/autofill/browser/crypto/rc4_decryptor.h" | 20 #include "components/autofill/core/browser/crypto/rc4_decryptor.h" |
21 #include "components/autofill/browser/field_types.h" | 21 #include "components/autofill/core/browser/field_types.h" |
22 #include "components/autofill/browser/form_group.h" | 22 #include "components/autofill/core/browser/form_group.h" |
23 #include "components/autofill/browser/personal_data_manager.h" | 23 #include "components/autofill/core/browser/personal_data_manager.h" |
24 #include "components/autofill/browser/personal_data_manager_observer.h" | 24 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
25 #include "components/autofill/browser/phone_number.h" | 25 #include "components/autofill/core/browser/phone_number.h" |
26 #include "components/autofill/browser/phone_number_i18n.h" | 26 #include "components/autofill/core/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 namespace autofill { | 31 namespace autofill { |
32 | 32 |
33 // Forward declaration. This function is not in unnamed namespace as it | 33 // Forward declaration. This function is not in unnamed namespace as it |
34 // is referenced in the unittest. | 34 // is referenced in the unittest. |
35 bool ImportCurrentUserProfiles(const std::string& app_locale, | 35 bool ImportCurrentUserProfiles(const std::string& app_locale, |
36 std::vector<AutofillProfile>* profiles, | 36 std::vector<AutofillProfile>* profiles, |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 bool ImportAutofillDataWin(PersonalDataManager* pdm) { | 303 bool ImportAutofillDataWin(PersonalDataManager* pdm) { |
304 // In incognito mode we do not have PDM - and we should not import anything. | 304 // In incognito mode we do not have PDM - and we should not import anything. |
305 if (!pdm) | 305 if (!pdm) |
306 return false; | 306 return false; |
307 AutofillImporter *importer = new AutofillImporter(pdm); | 307 AutofillImporter *importer = new AutofillImporter(pdm); |
308 // importer will self delete. | 308 // importer will self delete. |
309 return importer->ImportProfiles(); | 309 return importer->ImportProfiles(); |
310 } | 310 } |
311 | 311 |
312 } // namespace autofill | 312 } // namespace autofill |
OLD | NEW |