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

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

Issue 5646003: Sanitize PrefStore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrefService mock construction in PrefServiceTest to include command line store. 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/extensions/extension_pref_store.h ('k') | chrome/browser/extensions/extension_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_pref_store.cc
diff --git a/chrome/browser/extensions/extension_pref_store.cc b/chrome/browser/extensions/extension_pref_store.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b3aba4482c86285d16a237798fb3c00277b040d4
--- /dev/null
+++ b/chrome/browser/extensions/extension_pref_store.cc
@@ -0,0 +1,28 @@
+// 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/extensions/extension_pref_store.h"
+
+ExtensionPrefStore::ExtensionPrefStore()
+ : initialization_complete_(false) {
+}
+
+void ExtensionPrefStore::SetExtensionPref(const std::string& key,
+ Value* value) {
+ SetValue(key, value);
+}
+
+void ExtensionPrefStore::RemoveExtensionPref(const std::string& key) {
+ RemoveValue(key);
+}
+
+void ExtensionPrefStore::OnInitializationCompleted() {
+ DCHECK(!initialization_complete_);
+ initialization_complete_ = true;
+ NotifyInitializationCompleted();
+}
+
+bool ExtensionPrefStore::IsInitializationComplete() const {
+ return initialization_complete_;
+}
« no previous file with comments | « chrome/browser/extensions/extension_pref_store.h ('k') | chrome/browser/extensions/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698