| 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;
|
|
|