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

Unified Diff: chrome/browser/task_manager/task_manager.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: interactive_ui_tests 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/task_manager/task_manager.cc
diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
index 0457b63e780cdc2e2b85e85500100ab2f04b1068..5ba8f202c2dce56dc4704ff3fa035be9d7998c2b 100644
--- a/chrome/browser/task_manager/task_manager.cc
+++ b/chrome/browser/task_manager/task_manager.cc
@@ -1131,13 +1131,12 @@ int CountExtensionBackgroundPagesForProfile(Profile* profile) {
ExtensionProcessManager* manager = profile->GetExtensionProcessManager();
if (!manager)
return count;
- for (ExtensionProcessManager::const_iterator iter = manager->begin();
- iter != manager->end();
- ++iter) {
- if ((*iter)->extension_host_type() ==
- chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) {
- count++;
- }
+
+ const ExtensionProcessManager::ExtensionHostSet& background_hosts =
+ manager->background_hosts();
+ for (ExtensionProcessManager::const_iterator iter = background_hosts.begin();
+ iter != background_hosts.end(); ++iter) {
+ ++count;
}
return count;
}

Powered by Google App Engine
This is Rietveld 408576698