| 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 4380ed8f905cd4e854035731da65613fd7bd77c8..734da89dfd8853e6f6288cb60b09a4e1ff629dcb 100644
|
| --- a/chrome/browser/task_manager/task_manager_worker_resource_provider.cc
|
| +++ b/chrome/browser/task_manager/task_manager_worker_resource_provider.cc
|
| @@ -12,11 +12,11 @@
|
| #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/browser_thread.h"
|
| +#include "content/public/browser/devtools_agent_host_registry.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_types.h"
|
| #include "content/public/common/process_type.h"
|
| @@ -26,6 +26,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
|
| @@ -127,7 +129,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);
|
|
|