Index: chrome/browser/extensions/process_management_browsertest.cc |
diff --git a/chrome/browser/extensions/process_management_browsertest.cc b/chrome/browser/extensions/process_management_browsertest.cc |
index 6e1318960ca163045b8ee53571a6269d94c4d031..111475024351c4078b3fd36e3398fe949aa920a2 100644 |
--- a/chrome/browser/extensions/process_management_browsertest.cc |
+++ b/chrome/browser/extensions/process_management_browsertest.cc |
@@ -215,13 +215,10 @@ IN_PROC_BROWSER_TEST_F(ProcessManagementTest, ExtensionProcessBalancing) { |
Profile* profile = browser()->GetProfile(); |
ExtensionProcessManager* epm = profile->GetExtensionProcessManager(); |
- for (ExtensionProcessManager::const_iterator iter = epm->begin(); |
- iter != epm->end(); |
- ++iter) { |
- ExtensionHost* host = *iter; |
- if (host->extension()->has_background_page()) { |
- process_ids.insert(host->render_process_host()->GetID()); |
- } |
+ for (ExtensionProcessManager::const_iterator iter = |
+ epm->background_hosts().begin(); |
+ iter != epm->background_hosts().end(); ++iter) { |
+ process_ids.insert((*iter)->render_process_host()->GetID()); |
} |
// We've loaded 5 extensions with background pages, 1 extension without |