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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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() {
21 DCHECK(!initialization_complete_);
22 initialization_complete_ = true;
23 NotifyInitializationCompleted();
24 }
25
26 bool ExtensionPrefStore::IsInitializationComplete() const {
27 return initialization_complete_;
28 }
OLDNEW
« 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