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

Unified Diff: chrome/browser/debugger/devtools_sanity_unittest.cc

Issue 10113005: Remove EPM:all_hosts_ and use all_extension_views_ instead. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: interactive_ui_tests Created 8 years, 8 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
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();

Powered by Google App Engine
This is Rietveld 408576698