| 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;
|
| }
|
|
|