Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index 4ec2db715252edfee3d7abc2bd9e4989b36783bb..f98cb25c522f91d0ae58f293a2c3ed82909f96e0 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -422,6 +422,9 @@ StoragePartitionImpl::~StoragePartitionImpl() { |
if (GetGeofencingManager()) |
GetGeofencingManager()->Shutdown(); |
+ |
+ if (GetPlatformNotificationContext()) |
+ GetPlatformNotificationContext()->Shutdown(); |
} |
StoragePartitionImpl* StoragePartitionImpl::Create( |
@@ -510,7 +513,8 @@ StoragePartitionImpl* StoragePartitionImpl::Create( |
new NavigatorConnectServiceWorkerServiceFactory(service_worker_context))); |
scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = |
- new PlatformNotificationContextImpl(path); |
+ new PlatformNotificationContextImpl(path, service_worker_context); |
+ platform_notification_context->Initialize(); |
StoragePartitionImpl* storage_partition = new StoragePartitionImpl( |
context, partition_path, quota_manager.get(), appcache_service.get(), |