diff options
Diffstat (limited to 'chrome/browser/dummy_pref_store.cc')
-rw-r--r-- | chrome/browser/dummy_pref_store.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/dummy_pref_store.cc b/chrome/browser/dummy_pref_store.cc new file mode 100644 index 0000000..7b3cd0a --- /dev/null +++ b/chrome/browser/dummy_pref_store.cc @@ -0,0 +1,21 @@ +// 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/dummy_pref_store.h" + +DummyPrefStore::DummyPrefStore() + : prefs_(new DictionaryValue()), + read_only_(true), + prefs_written_(false) { } + +PrefStore::PrefReadError DummyPrefStore::ReadPrefs() { + prefs_.reset(new DictionaryValue()); + return PrefStore::PREF_READ_ERROR_NONE; +} + +bool DummyPrefStore::WritePrefs() { + prefs_written_ = true; + return prefs_written_; +} + |