| Index: chrome/browser/autofill/autofill_common_test.cc
|
| diff --git a/chrome/browser/autofill/autofill_common_test.cc b/chrome/browser/autofill/autofill_common_test.cc
|
| index 6817dbb4a805a992433134d98e75964613844119..c926b8e359da93684c4e1162f848391cf9b7c589 100644
|
| --- a/chrome/browser/autofill/autofill_common_test.cc
|
| +++ b/chrome/browser/autofill/autofill_common_test.cc
|
| @@ -86,8 +86,10 @@ void DisableSystemServices(Profile* profile) {
|
|
|
| // Disable auxiliary profiles for unit testing. These reach out to system
|
| // services on the Mac.
|
| - profile->GetPrefs()->SetBoolean(prefs::kAutoFillAuxiliaryProfilesEnabled,
|
| - false);
|
| + if (profile) {
|
| + profile->GetPrefs()->SetBoolean(prefs::kAutoFillAuxiliaryProfilesEnabled,
|
| + false);
|
| + }
|
| }
|
|
|
| } // namespace autofill_test
|
|
|