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

Unified Diff: ppapi/proxy/ppapi_proxy_test.cc

Issue 2419663003: Remove usage of base::ObserverList<T>::Iter::GetNext() in //ppapi. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppapi_proxy_test.cc
diff --git a/ppapi/proxy/ppapi_proxy_test.cc b/ppapi/proxy/ppapi_proxy_test.cc
index ed70bb575b331bb8b080acf5770d6c74959f8406..0c61439deab6caed6a63d28b4cfa68f85c5187a8 100644
--- a/ppapi/proxy/ppapi_proxy_test.cc
+++ b/ppapi/proxy/ppapi_proxy_test.cc
@@ -67,10 +67,8 @@ PPB_Proxy_Private ppb_proxy_private = {
base::ObserverList<ProxyTestHarnessBase> get_interface_handlers_;
const void* MockGetInterface(const char* name) {
- base::ObserverList<ProxyTestHarnessBase>::Iterator it(
- &get_interface_handlers_);
- while (ProxyTestHarnessBase* observer = it.GetNext()) {
- const void* interface = observer->GetInterface(name);
+ for (auto& observer : get_interface_handlers_) {
+ const void* interface = observer.GetInterface(name);
if (interface)
return interface;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698