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

Unified Diff: chrome/browser/chrome_content_browser_client.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/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());
}
}

Powered by Google App Engine
This is Rietveld 408576698