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

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

Issue 10956034: Switching from ForXyz naming to FromXyz naming, for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 | Annotate | Revision Log
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 "chrome/browser/autofill/autofill_common_test.h" 5 #include "chrome/browser/autofill/autofill_common_test.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/api/prefs/pref_service_base.h" 8 #include "chrome/browser/api/prefs/pref_service_base.h"
9 #include "chrome/browser/autofill/autofill_profile.h" 9 #include "chrome/browser/autofill/autofill_profile.h"
10 #include "chrome/browser/autofill/credit_card.h" 10 #include "chrome/browser/autofill/credit_card.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 void DisableSystemServices(Profile* profile) { 77 void DisableSystemServices(Profile* profile) {
78 // Use a mock Keychain rather than the OS one to store credit card data. 78 // Use a mock Keychain rather than the OS one to store credit card data.
79 #if defined(OS_MACOSX) 79 #if defined(OS_MACOSX)
80 Encryptor::UseMockKeychain(true); 80 Encryptor::UseMockKeychain(true);
81 #endif 81 #endif
82 82
83 // Disable auxiliary profiles for unit testing. These reach out to system 83 // Disable auxiliary profiles for unit testing. These reach out to system
84 // services on the Mac. 84 // services on the Mac.
85 if (profile) { 85 if (profile) {
86 PrefServiceBase::ForContext(profile)->SetBoolean( 86 PrefServiceBase::FromBrowserContext(profile)->SetBoolean(
87 prefs::kAutofillAuxiliaryProfilesEnabled, false); 87 prefs::kAutofillAuxiliaryProfilesEnabled, false);
88 } 88 }
89 } 89 }
90 90
91 } // namespace autofill_test 91 } // namespace autofill_test
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/autofill/autofill_download.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698