Index: content/browser/worker_host/worker_process_host.cc |
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc |
index a8e2c33e5de6eac49872e24ef1279bc6f8af8979..3d38520ee4021d08c4c3b6d324dc09f7e92d9fa2 100644 |
--- a/content/browser/worker_host/worker_process_host.cc |
+++ b/content/browser/worker_host/worker_process_host.cc |
@@ -469,7 +469,7 @@ void WorkerProcessHost::RelayMessage( |
} |
void WorkerProcessHost::ShutdownSocketStreamDispatcherHostIfNecessary() { |
- if (!instances_.size() && socket_stream_dispatcher_host_) { |
+ if (!instances_.size() && socket_stream_dispatcher_host_.get()) { |
// We can assume that this object is going to delete, because |
// currently a WorkerInstance will never be added to a WorkerProcessHost |
// once it is initialized. |