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

Unified Diff: chrome/browser/extensions/process_management_browsertest.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/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

Powered by Google App Engine
This is Rietveld 408576698