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

Side by Side Diff: chrome/browser/prefs/value_map_pref_store.cc

Issue 6894020: Adds async interface method to PersistentPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2010->2011 Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prefs/testing_pref_store.cc ('k') | chrome/browser/profiles/profile_impl.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/prefs/value_map_pref_store.h" 5 #include "chrome/browser/prefs/value_map_pref_store.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 19 matching lines...) Expand all
30 if (prefs_.SetValue(key, value)) 30 if (prefs_.SetValue(key, value))
31 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); 31 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
32 } 32 }
33 33
34 void ValueMapPrefStore::RemoveValue(const std::string& key) { 34 void ValueMapPrefStore::RemoveValue(const std::string& key) {
35 if (prefs_.RemoveValue(key)) 35 if (prefs_.RemoveValue(key))
36 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); 36 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
37 } 37 }
38 38
39 void ValueMapPrefStore::NotifyInitializationCompleted() { 39 void ValueMapPrefStore::NotifyInitializationCompleted() {
40 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted()); 40 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
41 } 41 }
42 42
43 ValueMapPrefStore::iterator ValueMapPrefStore::begin() { 43 ValueMapPrefStore::iterator ValueMapPrefStore::begin() {
44 return prefs_.begin(); 44 return prefs_.begin();
45 } 45 }
46 46
47 ValueMapPrefStore::iterator ValueMapPrefStore::end() { 47 ValueMapPrefStore::iterator ValueMapPrefStore::end() {
48 return prefs_.end(); 48 return prefs_.end();
49 } 49 }
50 50
51 ValueMapPrefStore::const_iterator ValueMapPrefStore::begin() const { 51 ValueMapPrefStore::const_iterator ValueMapPrefStore::begin() const {
52 return prefs_.begin(); 52 return prefs_.begin();
53 } 53 }
54 54
55 ValueMapPrefStore::const_iterator ValueMapPrefStore::end() const { 55 ValueMapPrefStore::const_iterator ValueMapPrefStore::end() const {
56 return prefs_.end(); 56 return prefs_.end();
57 } 57 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/testing_pref_store.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698