Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2025)

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc

Issue 62203007: Implement memory-persistent registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Working version Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698