summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_pref_store.cc
blob: b3aba4482c86285d16a237798fb3c00277b040d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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_;
}