| 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 "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 Loading... |
| 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 } |
| OLD | NEW |