OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_common_test.h" | 5 #include "components/autofill/browser/autofill_common_test.h" |
6 | 6 |
7 #include "base/guid.h" | 7 #include "base/guid.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "components/autofill/browser/autofill_profile.h" | 11 #include "components/autofill/browser/autofill_profile.h" |
12 #include "components/autofill/browser/credit_card.h" | 12 #include "components/autofill/browser/credit_card.h" |
13 #include "components/autofill/common/autofill_pref_names.h" | 13 #include "components/autofill/core/common/autofill_pref_names.h" |
14 #include "components/autofill/common/form_field_data.h" | 14 #include "components/autofill/core/common/form_field_data.h" |
15 #include "components/user_prefs/user_prefs.h" | 15 #include "components/user_prefs/user_prefs.h" |
16 #include "components/webdata/encryptor/encryptor.h" | 16 #include "components/webdata/encryptor/encryptor.h" |
17 | 17 |
18 namespace autofill { | 18 namespace autofill { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const char kSettingsOrigin[] = "Chrome settings"; | 23 const char kSettingsOrigin[] = "Chrome settings"; |
24 | 24 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Disable auxiliary profiles for unit testing. These reach out to system | 151 // Disable auxiliary profiles for unit testing. These reach out to system |
152 // services on the Mac. | 152 // services on the Mac. |
153 if (profile) { | 153 if (profile) { |
154 user_prefs::UserPrefs::Get(profile)->SetBoolean( | 154 user_prefs::UserPrefs::Get(profile)->SetBoolean( |
155 prefs::kAutofillAuxiliaryProfilesEnabled, false); | 155 prefs::kAutofillAuxiliaryProfilesEnabled, false); |
156 } | 156 } |
157 } | 157 } |
158 | 158 |
159 } // namespace test | 159 } // namespace test |
160 } // namespace autofill | 160 } // namespace autofill |
OLD | NEW |