Index: chrome/browser/prefs/pref_change_registrar_unittest.cc |
diff --git a/chrome/browser/prefs/pref_change_registrar_unittest.cc b/chrome/browser/prefs/pref_change_registrar_unittest.cc |
index 2e4cd0e8425ef38c00ba824fddfb7a570508901a..a8c1eedff6c602022cac56984f3111c5901c6130 100644 |
--- a/chrome/browser/prefs/pref_change_registrar_unittest.cc |
+++ b/chrome/browser/prefs/pref_change_registrar_unittest.cc |
@@ -2,7 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "chrome/browser/extensions/extension_pref_store.h" |
#include "chrome/browser/prefs/pref_change_registrar.h" |
+#include "chrome/browser/prefs/testing_pref_store.h" |
#include "chrome/common/notification_details.h" |
#include "chrome/common/notification_observer_mock.h" |
#include "chrome/common/notification_source.h" |
@@ -20,7 +22,12 @@ namespace { |
// A mock provider that allows us to capture pref observer changes. |
class MockPrefService : public TestingPrefService { |
public: |
- MockPrefService() {} |
+ MockPrefService() |
+ : TestingPrefService(new TestingPrefStore(), |
+ new TestingPrefStore(), |
+ new ExtensionPrefStore(), |
+ new TestingPrefStore()) { |
+ } |
virtual ~MockPrefService() {}; |
MOCK_METHOD2(AddPrefObserver, void(const char*, NotificationObserver*)); |