Index: chrome/browser/automation/automation_provider_observers.cc |
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc |
index b49a726257fab96218aea318b5e7554409f45644..f7abc4176fcb7030a896a7d7dbaaa57be677348a 100644 |
--- a/chrome/browser/automation/automation_provider_observers.cc |
+++ b/chrome/browser/automation/automation_provider_observers.cc |
@@ -507,9 +507,11 @@ void TabCountChangeObserver::CheckTabCount() { |
} |
bool DidExtensionHostsStopLoading(ExtensionProcessManager* manager) { |
- for (ExtensionProcessManager::const_iterator iter = manager->begin(); |
- iter != manager->end(); ++iter) { |
- if (!(*iter)->did_stop_loading()) |
+ ExtensionProcessManager::ViewSet all_views = manager->GetAllViews(); |
+ for (ExtensionProcessManager::ViewSet::const_iterator iter = |
+ all_views.begin(); |
+ iter != all_views.end(); ++iter) { |
+ if ((*iter)->IsLoading()) |
return false; |
} |
return true; |