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

Side by Side Diff: base/prefs/value_map_pref_store.cc

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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 | « base/prefs/value_map_pref_store.h ('k') | chrome/DEPS » ('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 "chrome/browser/prefs/value_map_pref_store.h" 5 #include "base/prefs/value_map_pref_store.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 11
12 ValueMapPrefStore::ValueMapPrefStore() {} 12 ValueMapPrefStore::ValueMapPrefStore() {}
13 13
14 PrefStore::ReadResult ValueMapPrefStore::GetValue(const std::string& key, 14 PrefStore::ReadResult ValueMapPrefStore::GetValue(const std::string& key,
15 const Value** value) const { 15 const Value** value) const {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 void ValueMapPrefStore::RemoveValue(const std::string& key) { 54 void ValueMapPrefStore::RemoveValue(const std::string& key) {
55 if (prefs_.RemoveValue(key)) 55 if (prefs_.RemoveValue(key))
56 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); 56 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
57 } 57 }
58 58
59 void ValueMapPrefStore::NotifyInitializationCompleted() { 59 void ValueMapPrefStore::NotifyInitializationCompleted() {
60 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true)); 60 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
61 } 61 }
OLDNEW
« no previous file with comments | « base/prefs/value_map_pref_store.h ('k') | chrome/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698