| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/in_memory_pref_store.h" | 5 #include "components/prefs/in_memory_pref_store.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 PersistentPrefStore::PrefReadError InMemoryPrefStore::GetReadError() const { | 65 PersistentPrefStore::PrefReadError InMemoryPrefStore::GetReadError() const { |
| 66 return PersistentPrefStore::PREF_READ_ERROR_NONE; | 66 return PersistentPrefStore::PREF_READ_ERROR_NONE; |
| 67 } | 67 } |
| 68 | 68 |
| 69 PersistentPrefStore::PrefReadError InMemoryPrefStore::ReadPrefs() { | 69 PersistentPrefStore::PrefReadError InMemoryPrefStore::ReadPrefs() { |
| 70 return PersistentPrefStore::PREF_READ_ERROR_NONE; | 70 return PersistentPrefStore::PREF_READ_ERROR_NONE; |
| 71 } | 71 } |
| 72 | 72 |
| 73 void InMemoryPrefStore::ReportValueChanged(const std::string& key, | 73 void InMemoryPrefStore::ReportValueChanged(const std::string& key, |
| 74 uint32_t flags) { | 74 uint32_t flags) { |
| 75 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); | 75 for (Observer& observer : observers_) |
| 76 observer.OnPrefValueChanged(key); |
| 76 } | 77 } |
| OLD | NEW |