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

Unified Diff: chrome/browser/prefs/in_memory_pref_store.cc

Issue 5204006: Renamed DefaultPrefStore into InMemoryPrefStore because it can be used in further contexts. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased Created 10 years 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
« no previous file with comments | « chrome/browser/prefs/in_memory_pref_store.h ('k') | chrome/browser/prefs/pref_notifier_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/in_memory_pref_store.cc
diff --git a/chrome/browser/prefs/in_memory_pref_store.cc b/chrome/browser/prefs/in_memory_pref_store.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1a2fcba3e299cf4c92af9c0a101d626bbee244df
--- /dev/null
+++ b/chrome/browser/prefs/in_memory_pref_store.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/prefs/in_memory_pref_store.h"
+
+#include "base/values.h"
+
+InMemoryPrefStore::InMemoryPrefStore() : prefs_(new DictionaryValue()) {
+}
+
+InMemoryPrefStore::~InMemoryPrefStore() {
+}
+
+DictionaryValue* InMemoryPrefStore::prefs() const {
+ return prefs_.get();
+}
+
+PrefStore::PrefReadError InMemoryPrefStore::ReadPrefs() {
+ return PrefStore::PREF_READ_ERROR_NONE;
+}
« no previous file with comments | « chrome/browser/prefs/in_memory_pref_store.h ('k') | chrome/browser/prefs/pref_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698