Index: content/worker/webworker_stub.cc |
diff --git a/content/worker/webworker_stub.cc b/content/worker/webworker_stub.cc |
index b7ecd134601dbbb240bed0b55edf875cb39acd7b..f782bb34d027612909cc74bca5ad19719df0953a 100644 |
--- a/content/worker/webworker_stub.cc |
+++ b/content/worker/webworker_stub.cc |
@@ -23,7 +23,7 @@ WebWorkerStub::WebWorkerStub(const GURL& url, int route_id, |
ALLOW_THIS_IN_INITIALIZER_LIST(impl_(WebWorker::create(client()))), |
url_(url), |
ALLOW_THIS_IN_INITIALIZER_LIST(worker_devtools_agent_( |
- new WorkerDevToolsAgent(route_id, impl_))) { |
+ WorkerDevToolsAgent::CreateForDedicatedWorker(route_id, impl_))) { |
client()->set_devtools_agent(worker_devtools_agent_.get()); |
} |