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 f0e3408515d3582188246530743f69a9114b7048..be9a3b9f7660a23ef99458360784751eb43aaab5 100644 |
--- a/chrome/browser/task_manager/task_manager.cc |
+++ b/chrome/browser/task_manager/task_manager.cc |
@@ -15,8 +15,6 @@ |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
-#include "chrome/browser/background/background_contents_service.h" |
-#include "chrome/browser/background/background_contents_service_factory.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/extensions/extension_process_manager.h" |
#include "chrome/browser/extensions/extension_system.h" |
@@ -1545,36 +1543,6 @@ void TaskManager::OpenAboutMemory(chrome::HostDesktopType desktop_type) { |
chrome::Navigate(¶ms); |
} |
-// static |
-int TaskManager::GetBackgroundPageCount() { |
- int count = 0; |
- ProfileManager* profile_manager = g_browser_process->profile_manager(); |
- if (!profile_manager) // Null when running unit tests. |
- return count; |
- std::vector<Profile*> profiles(profile_manager->GetLoadedProfiles()); |
- for (std::vector<Profile*>::const_iterator iter = profiles.begin(); |
- iter != profiles.end(); |
- ++iter) { |
- Profile* profile = *iter; |
- // Count the number of Background Contents (background pages for hosted |
- // apps). Incognito windows do not support hosted apps, so just check the |
- // main profile. |
- BackgroundContentsService* background_contents_service = |
- BackgroundContentsServiceFactory::GetForProfile(profile); |
- if (background_contents_service) |
- count += background_contents_service->GetBackgroundContents().size(); |
- |
- // Count the number of extensions with background pages (including |
- // incognito). |
- count += CountExtensionBackgroundPagesForProfile(profile); |
- if (profile->HasOffTheRecordProfile()) { |
- count += CountExtensionBackgroundPagesForProfile( |
- profile->GetOffTheRecordProfile()); |
- } |
- } |
- return count; |
-} |
- |
TaskManager::TaskManager() |
: model_(new TaskManagerModel(this)) { |
} |