OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/extensions/extension_pref_store.h" | |
6 | |
7 ExtensionPrefStore::ExtensionPrefStore() | |
8 : initialization_complete_(false) { | |
9 } | |
10 | |
11 void ExtensionPrefStore::SetExtensionPref(const std::string& key, | |
12 Value* value) { | |
13 SetValue(key, value); | |
14 } | |
15 | |
16 void ExtensionPrefStore::RemoveExtensionPref(const std::string& key) { | |
17 RemoveValue(key); | |
18 } | |
19 | |
20 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
| |
21 initialization_complete_ = true; | |
22 NotifyInitializationCompleted(); | |
23 } | |
24 | |
25 bool ExtensionPrefStore::IsInitializationComplete() { | |
26 return initialization_complete_; | |
27 } | |
OLD | NEW |