Index: chrome/browser/sync/profile_sync_service_mock.cc |
diff --git a/chrome/browser/sync/profile_sync_service_mock.cc b/chrome/browser/sync/profile_sync_service_mock.cc |
index 694753a93e8c9971fa6c7c1d82339bcc2b576401..e62e8f12d8bbe08d9f48b49ca609a5cfca945a30 100644 |
--- a/chrome/browser/sync/profile_sync_service_mock.cc |
+++ b/chrome/browser/sync/profile_sync_service_mock.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/prefs/pref_service_mock_builder.h" |
+#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/prefs/testing_pref_store.h" |
#include "chrome/browser/signin/signin_manager_factory.h" |
#include "chrome/browser/sync/profile_sync_service_mock.h" |
@@ -31,14 +31,7 @@ ProfileSyncServiceMock::~ProfileSyncServiceMock() { |
// static |
TestingProfile* ProfileSyncServiceMock::MakeSignedInTestingProfile() { |
TestingProfile* profile = new TestingProfile(); |
- TestingPrefStore* user_prefs = new TestingPrefStore(); |
- PrefService* prefs = PrefServiceMockBuilder() |
- .WithUserPrefs(user_prefs) |
- .Create(); |
- profile->SetPrefService(prefs); |
- // We just blew away our prefs, so reregister them. |
- SigninManagerFactory::GetInstance()->RegisterUserPrefs(prefs); |
- user_prefs->SetString(prefs::kGoogleServicesUsername, "foo"); |
+ profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); |
return profile; |
} |