OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cronet/android/cronet_in_memory_pref_store.h" | 5 #include "components/cronet/android/cronet_in_memory_pref_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 PersistentPrefStore::PrefReadError CronetInMemoryPrefStore::ReadPrefs() { | 72 PersistentPrefStore::PrefReadError CronetInMemoryPrefStore::ReadPrefs() { |
73 return PersistentPrefStore::PREF_READ_ERROR_NONE; | 73 return PersistentPrefStore::PREF_READ_ERROR_NONE; |
74 } | 74 } |
75 | 75 |
76 void CronetInMemoryPrefStore::ReadPrefsAsync( | 76 void CronetInMemoryPrefStore::ReadPrefsAsync( |
77 ReadErrorDelegate* error_delegate_raw) { | 77 ReadErrorDelegate* error_delegate_raw) { |
78 } | 78 } |
79 | 79 |
80 void CronetInMemoryPrefStore::ReportValueChanged(const std::string& key, | 80 void CronetInMemoryPrefStore::ReportValueChanged(const std::string& key, |
81 uint32_t flags) { | 81 uint32_t flags) { |
82 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); | 82 for (Observer& observer : observers_) |
| 83 observer.OnPrefValueChanged(key); |
83 } | 84 } |
84 | 85 |
OLD | NEW |