Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index ee71f090d4b6b44727ec0f36680f9249262225b4..b3cfb9fae03dcff8bab93cde7521e2a3f3c7f3cf 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -575,13 +575,11 @@ bool ChromeContentBrowserClient::ShouldTryToUseExistingProcessHost( |
GetLoadedProfiles(); |
for (size_t i = 0; i < profiles.size(); ++i) { |
ExtensionProcessManager* epm = profiles[i]->GetExtensionProcessManager(); |
- for (ExtensionProcessManager::const_iterator iter = epm->begin(); |
- iter != epm->end(); |
- ++iter) { |
+ for (ExtensionProcessManager::const_iterator iter = |
+ epm->background_hosts().begin(); |
+ iter != epm->background_hosts().end(); ++iter) { |
ExtensionHost* host = *iter; |
- if (host->extension()->has_background_page()) { |
- process_ids.insert(host->render_process_host()->GetID()); |
- } |
+ process_ids.insert(host->render_process_host()->GetID()); |
} |
} |