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

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

Issue 3032058: Move creation of the PrefStores into the PrefValueStore, to reduce the knowle... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Comment-only changes Created 10 years, 4 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 55061)
+++ chrome/browser/extensions/extension_pref_store_unittest.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/pref_service.h"
#include "chrome/browser/pref_value_store.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/test/testing_pref_service.h"
namespace {
@@ -321,7 +322,8 @@
// The PrefValueStore takes ownership of the PrefStores; in this case, that's
// only an ExtensionPrefStore. Likewise, the PrefService takes ownership of
// the PrefValueStore.
- PrefValueStore* value_store = new PrefValueStore(NULL, eps, NULL, NULL, NULL);
+ PrefValueStore* value_store = new TestingPrefService::TestingPrefValueStore(
+ NULL, eps, NULL, NULL, NULL);
scoped_ptr<MockPrefService> pref_service(new MockPrefService(value_store));
eps->SetPrefService(pref_service.get());
pref_service->RegisterStringPref(kPref1, std::string());
« no previous file with comments | « no previous file | chrome/browser/net/chrome_url_request_context_unittest.cc » ('j') | chrome/browser/pref_value_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698