Index: chrome/browser/sync/profile_sync_service_preference_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_preference_unittest.cc b/chrome/browser/sync/profile_sync_service_preference_unittest.cc |
index 66bc938086f108d92f68a1a01b1a7a6506da1a00..076a7fb31f27158317cf5db5d51f6d33006064c5 100644 |
--- a/chrome/browser/sync/profile_sync_service_preference_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_preference_unittest.cc |
@@ -13,6 +13,7 @@ |
#include "base/location.h" |
#include "base/stl_util.h" |
#include "base/strings/string_piece.h" |
+#include "chrome/browser/invalidation/invalidation_service_factory.h" |
#include "chrome/browser/prefs/pref_model_associator.h" |
#include "chrome/browser/prefs/scoped_user_pref_update.h" |
#include "chrome/browser/signin/signin_manager.h" |
@@ -124,6 +125,8 @@ class ProfileSyncServicePreferenceTest |
AbstractProfileSyncServiceTest::SetUp(); |
profile_.reset(new TestingProfile()); |
profile_->CreateRequestContext(); |
+ invalidation::InvalidationServiceFactory::GetInstance()-> |
+ SetBuildOnlyFakeInvalidatorsForTest(true); |
prefs_ = profile_->GetTestingPrefService(); |
prefs_->registry()->RegisterStringPref( |