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/prefs/dummy_pref_store.h" | |
6 | |
7 #include "base/values.h" | |
8 | |
9 DummyPrefStore::DummyPrefStore() | |
10 : prefs_(new DictionaryValue()), | |
11 read_only_(true), | |
12 prefs_written_(false) { } | |
13 | |
14 PrefStore::PrefReadError DummyPrefStore::ReadPrefs() { | |
15 prefs_.reset(new DictionaryValue()); | |
16 return PrefStore::PREF_READ_ERROR_NONE; | |
17 } | |
18 | |
19 bool DummyPrefStore::WritePrefs() { | |
20 prefs_written_ = true; | |
21 return prefs_written_; | |
22 } | |
OLD | NEW |