Index: chrome/browser/debugger/devtools_sanity_unittest.cc |
diff --git a/chrome/browser/debugger/devtools_sanity_unittest.cc b/chrome/browser/debugger/devtools_sanity_unittest.cc |
index 2aacebd841ec70fc6958a3c703a5edac611594cf..59e34ad30c5be95ec6054a2680016db9d68548f4 100644 |
--- a/chrome/browser/debugger/devtools_sanity_unittest.cc |
+++ b/chrome/browser/debugger/devtools_sanity_unittest.cc |
@@ -231,9 +231,12 @@ class DevToolsExtensionTest : public DevToolsSanityTest, |
ExtensionProcessManager* manager = |
browser()->profile()->GetExtensionProcessManager(); |
- for (ExtensionProcessManager::const_iterator iter = manager->begin(); |
- iter != manager->end();) { |
- if ((*iter)->did_stop_loading()) |
+ ExtensionProcessManager::ContentsSet all_contents = |
+ manager->GetAllContents(); |
+ for (ExtensionProcessManager::ContentsSet::const_iterator iter = |
+ all_contents.begin(); |
+ iter != all_contents.end();) { |
+ if (!(*iter)->IsLoading()) |
++iter; |
else |
ui_test_utils::RunMessageLoop(); |