Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: chrome/browser/extensions/extension_pref_store_unittest.cc

Issue 3323022: Create a DefaultPrefStore to hold registered application-default preference v... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_pref_store_unittest.cc
===================================================================
--- chrome/browser/extensions/extension_pref_store_unittest.cc (revision 59196)
+++ chrome/browser/extensions/extension_pref_store_unittest.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/scoped_temp_dir.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_pref_store.h"
+#include "chrome/browser/prefs/default_pref_store.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/common/extensions/extension.h"
@@ -328,13 +329,14 @@
using testing::Mock;
TestExtensionPrefStore* eps = new TestExtensionPrefStore;
+ DefaultPrefStore* dps = new DefaultPrefStore;
ASSERT_TRUE(eps->ext1 != NULL);
// The PrefValueStore takes ownership of the PrefStores; in this case, that's
// only an ExtensionPrefStore. Likewise, the PrefService takes ownership of
// the PrefValueStore and PrefNotifier.
PrefValueStore* value_store = new TestingPrefService::TestingPrefValueStore(
- NULL, eps, NULL, NULL, NULL);
+ NULL, eps, NULL, NULL, NULL, dps);
scoped_ptr<MockPrefService> pref_service(new MockPrefService(value_store));
MockPrefNotifier* pref_notifier = new MockPrefNotifier(pref_service.get(),
value_store);

Powered by Google App Engine
This is Rietveld 408576698