Index: content/browser/background_sync/background_sync_service_impl_unittest.cc |
diff --git a/content/browser/background_sync/background_sync_service_impl_unittest.cc b/content/browser/background_sync/background_sync_service_impl_unittest.cc |
index 39a81663511129f9a1d84e4119dd2d80ce61e17d..7d6c0dce07aab7a51f0b7f8754a56efb3a84c959 100644 |
--- a/content/browser/background_sync/background_sync_service_impl_unittest.cc |
+++ b/content/browser/background_sync/background_sync_service_impl_unittest.cc |
@@ -106,6 +106,8 @@ class BackgroundSyncServiceImplTest : public testing::Test { |
// This must be explicitly destroyed here to ensure that destruction |
// of both the BackgroundSyncContext and the BackgroundSyncManager occurs on |
// the correct thread. |
+ background_sync_context_->Shutdown(); |
+ base::RunLoop().RunUntilIdle(); |
background_sync_context_ = nullptr; |
} |