Index: chrome/browser/task_manager/task_manager_worker_resource_provider.cc |
diff --git a/chrome/browser/task_manager/task_manager_worker_resource_provider.cc b/chrome/browser/task_manager/task_manager_worker_resource_provider.cc |
index 24d8d37a2373abce405bc888388a10896b704762..9bdb5b87f7bb86d03cd36532ad201b1c3d402ddc 100644 |
--- a/chrome/browser/task_manager/task_manager_worker_resource_provider.cc |
+++ b/chrome/browser/task_manager/task_manager_worker_resource_provider.cc |
@@ -12,10 +12,10 @@ |
#include "chrome/browser/debugger/devtools_window.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "content/browser/browser_child_process_host.h" |
-#include "content/browser/debugger/worker_devtools_manager.h" |
#include "content/browser/worker_host/worker_process_host.h" |
#include "content/browser/worker_host/worker_service.h" |
#include "content/browser/worker_host/worker_service_observer.h" |
+#include "content/public/browser/devtools/devtools_agent_host_registry.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
@@ -25,6 +25,8 @@ |
#include "ui/base/resource/resource_bundle.h" |
using content::BrowserThread; |
+using content::DevToolsAgentHost; |
+using content::DevToolsAgentHostRegistry; |
// Objects of this class are created on the IO thread and then passed to the UI |
// thread where they are passed to the task manager. All methods must be called |
@@ -126,7 +128,7 @@ void TaskManagerSharedWorkerResource::Inspect() const { |
if (!profile) |
return; |
DevToolsAgentHost* agent_host = |
- WorkerDevToolsManager::GetDevToolsAgentHostForWorker( |
+ DevToolsAgentHostRegistry::GetDevToolsAgentHostForWorker( |
process_info_.id(), |
routing_id_); |
DevToolsWindow::OpenDevToolsWindowForWorker(profile, agent_host); |