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

Side by Side Diff: components/cronet/android/cronet_in_memory_pref_store.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return Created 4 years, 1 month 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698