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 e7d56f0f86ff00ddc9b3d5f4258a8d8aa4224886..af91d79f427c641d8bb7eda0d798316bf655a412 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" |
@@ -122,6 +123,8 @@ class ProfileSyncServicePreferenceTest |
AbstractProfileSyncServiceTest::SetUp(); |
profile_.reset(new TestingProfile()); |
profile_->CreateRequestContext(); |
+ invalidation::InvalidationServiceFactory::GetInstance()-> |
+ SetFakeInvalidationServiceForTest(profile_.get()); |
prefs_ = profile_->GetTestingPrefService(); |
prefs_->registry()->RegisterStringPref( |