diff options
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_group.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_group.cc b/webkit/appcache/appcache_group.cc index 8063b911..fd22563 100644 --- a/webkit/appcache/appcache_group.cc +++ b/webkit/appcache/appcache_group.cc @@ -215,7 +215,13 @@ void AppCacheGroup::RunQueuedUpdates() { bool AppCacheGroup::FindObserver(UpdateObserver* find_me, const ObserverList<UpdateObserver>& observer_list) { - return observer_list.HasObserver(find_me); + ObserverList<UpdateObserver>::Iterator it(observer_list); + UpdateObserver* obs; + while ((obs = it.GetNext()) != NULL) { + if (obs == find_me) + return true; + } + return false; } void AppCacheGroup::ScheduleUpdateRestart(int delay_ms) { |