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

Side by Side Diff: components/prefs/default_pref_store.cc

Issue 2760453003: Work In Progess
Patch Set: convert local_state to use pre_client_store_ Created 3 years, 9 months 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
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | components/prefs/pref_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | components/prefs/pref_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698