| Index: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc | 
| diff --git a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc | 
| index ad62568c85d5f99307c564eeb6fa9d4cf50c74fd..12fe8c2e1df11f03918de023207937d9c4203344 100644 | 
| --- a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc | 
| +++ b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc | 
| @@ -22,7 +22,10 @@ class ServiceWorkerDispatcherHostTest : public testing::Test { | 
| } | 
|  | 
| virtual void TearDown() { | 
| -    context_.reset(); | 
| +    if (context_) { | 
| +      context_->Shutdown(); | 
| +      context_.reset(); | 
| +    } | 
| } | 
|  | 
| scoped_ptr<ServiceWorkerContextCore> context_; | 
| @@ -99,6 +102,7 @@ TEST_F(ServiceWorkerDispatcherHostTest, EarlyContextDeletion) { | 
| scoped_refptr<TestingServiceWorkerDispatcherHost> dispatcher_host = | 
| new TestingServiceWorkerDispatcherHost(kRenderProcessId, context_.get()); | 
|  | 
| +  context_->Shutdown(); | 
| context_.reset(); | 
|  | 
| bool handled; | 
|  |