Index: chrome/browser/ui/webui/workers_ui.cc |
=================================================================== |
--- chrome/browser/ui/webui/workers_ui.cc (revision 109446) |
+++ chrome/browser/ui/webui/workers_ui.cc (working copy) |
@@ -22,7 +22,6 @@ |
#include "content/browser/worker_host/worker_service.h" |
#include "content/browser/worker_host/worker_service_observer.h" |
#include "content/common/devtools_messages.h" |
-#include "content/common/worker_messages.h" |
#include "grit/generated_resources.h" |
#include "grit/workers_resources.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -153,7 +152,8 @@ |
for (BrowserChildProcessHost::Iterator iter(ChildProcessInfo::WORKER_PROCESS); |
!iter.Done(); ++iter) { |
if (iter->id() == worker_process_id) { |
- (*iter)->Send(new WorkerMsg_TerminateWorkerContext(worker_route_id)); |
+ WorkerProcessHost* worker = static_cast<WorkerProcessHost*>(*iter); |
ananta
2011/11/12 00:10:15
Please fix indent.
|
+ worker->TerminateWorker(worker_route_id); |
return; |
} |
} |