OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/prefs/default_pref_store.h" | 5 #include "components/prefs/default_pref_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 using base::Value; | 11 using base::Value; |
12 | 12 |
13 DefaultPrefStore::DefaultPrefStore() {} | 13 DefaultPrefStore::DefaultPrefStore() {} |
14 | 14 |
15 bool DefaultPrefStore::GetValue(const std::string& key, | 15 bool DefaultPrefStore::GetValue(const std::string& key, |
16 const Value** result) const { | 16 const Value** result) const { |
| 17 if (!key.compare("settings.display.properties")) |
| 18 LOG(ERROR) << "DefaultPrefStore::GetValue key: " << key ; |
17 return prefs_.GetValue(key, result); | 19 return prefs_.GetValue(key, result); |
18 } | 20 } |
19 | 21 |
20 std::unique_ptr<base::DictionaryValue> DefaultPrefStore::GetValues() const { | 22 std::unique_ptr<base::DictionaryValue> DefaultPrefStore::GetValues() const { |
21 return prefs_.AsDictionaryValue(); | 23 return prefs_.AsDictionaryValue(); |
22 } | 24 } |
23 | 25 |
24 void DefaultPrefStore::AddObserver(PrefStore::Observer* observer) { | 26 void DefaultPrefStore::AddObserver(PrefStore::Observer* observer) { |
25 observers_.AddObserver(observer); | 27 observers_.AddObserver(observer); |
26 } | 28 } |
(...skipping 26 matching lines...) Expand all Loading... |
53 | 55 |
54 DefaultPrefStore::const_iterator DefaultPrefStore::begin() const { | 56 DefaultPrefStore::const_iterator DefaultPrefStore::begin() const { |
55 return prefs_.begin(); | 57 return prefs_.begin(); |
56 } | 58 } |
57 | 59 |
58 DefaultPrefStore::const_iterator DefaultPrefStore::end() const { | 60 DefaultPrefStore::const_iterator DefaultPrefStore::end() const { |
59 return prefs_.end(); | 61 return prefs_.end(); |
60 } | 62 } |
61 | 63 |
62 DefaultPrefStore::~DefaultPrefStore() {} | 64 DefaultPrefStore::~DefaultPrefStore() {} |
OLD | NEW |