Chromium Code Reviews| 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..5d6e565e3749c68a8290e5984e987bd49221e0c8 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/extension_pref_store.cc |
| @@ -0,0 +1,27 @@ |
| +// 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() { |
|
danno
2010/12/08 13:08:45
DCHECK that it's not already initialized?
Mattias Nissler (ping if slow)
2010/12/09 10:20:20
It doesn't really hurt to call this twice, but I d
|
| + initialization_complete_ = true; |
| + NotifyInitializationCompleted(); |
| +} |
| + |
| +bool ExtensionPrefStore::IsInitializationComplete() { |
| + return initialization_complete_; |
| +} |