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

Unified Diff: chrome/browser/extensions/extension_browsertests_misc.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: Comments addressed 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/extensions/extension_browsertests_misc.cc
diff --git a/chrome/browser/extensions/extension_browsertests_misc.cc b/chrome/browser/extensions/extension_browsertests_misc.cc
index 9353077700ed788a65a26941b00b1c360ef6194e..cf98af472e539002a6ffdcb637a7d32813a9bf40 100644
--- a/chrome/browser/extensions/extension_browsertests_misc.cc
+++ b/chrome/browser/extensions/extension_browsertests_misc.cc
@@ -72,8 +72,10 @@ static ExtensionHost* FindHostWithPath(ExtensionProcessManager* manager,
int expected_hosts) {
ExtensionHost* host = NULL;
int num_hosts = 0;
- for (ExtensionProcessManager::const_iterator iter = manager->begin();
- iter != manager->end(); ++iter) {
+ ExtensionProcessManager::ExtensionHostSet background_hosts =
+ manager->background_hosts();
+ for (ExtensionProcessManager::const_iterator iter = background_hosts.begin();
+ iter != background_hosts.end(); ++iter) {
if ((*iter)->GetURL().path() == path) {
EXPECT_FALSE(host);
host = *iter;

Powered by Google App Engine
This is Rietveld 408576698