| 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" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 void DisableSystemServices(Profile* profile) { | 145 void DisableSystemServices(Profile* profile) { |
| 146 // Use a mock Keychain rather than the OS one to store credit card data. | 146 // Use a mock Keychain rather than the OS one to store credit card data. |
| 147 #if defined(OS_MACOSX) | 147 #if defined(OS_MACOSX) |
| 148 Encryptor::UseMockKeychain(true); | 148 Encryptor::UseMockKeychain(true); |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 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 components::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 |