Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: components/autofill/browser/autofill_common_test.cc

Issue 16625004: components: Move user_prefs into user_prefs namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/autofill/browser/autocomplete_history_manager.cc ('k') | components/autofill/browser/autofill_download.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698