diff options
author | falken <falken@chromium.org> | 2014-10-15 21:46:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-16 04:47:17 +0000 |
commit | 7253028818568d4233acc2031fe0a82f6d8d99b9 (patch) | |
tree | 923a7eb6176148ba277e18ac23cc794b0912d83f /content/browser/storage_partition_impl.cc | |
parent | 764baa24e4eb6a215551831b9d4d30316c724323 (diff) | |
download | chromium_src-7253028818568d4233acc2031fe0a82f6d8d99b9.zip chromium_src-7253028818568d4233acc2031fe0a82f6d8d99b9.tar.gz chromium_src-7253028818568d4233acc2031fe0a82f6d8d99b9.tar.bz2 |
Service Worker: Respect the "clear on exit" content setting
Now Service Worker registrations and data get deleted as per
SpecialStoragePolicy.
BUG=419280
Review URL: https://codereview.chromium.org/633873002
Cr-Commit-Position: refs/heads/master@{#299842}
Diffstat (limited to 'content/browser/storage_partition_impl.cc')
-rw-r--r-- | content/browser/storage_partition_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc index 42a5195..531e638 100644 --- a/content/browser/storage_partition_impl.cc +++ b/content/browser/storage_partition_impl.cc @@ -452,7 +452,8 @@ StoragePartitionImpl* StoragePartitionImpl::Create( scoped_refptr<ServiceWorkerContextWrapper> service_worker_context = new ServiceWorkerContextWrapper(context); - service_worker_context->Init(path, quota_manager->proxy()); + service_worker_context->Init( + path, quota_manager->proxy(), context->GetSpecialStoragePolicy()); scoped_refptr<ChromeAppCacheService> appcache_service = new ChromeAppCacheService(quota_manager->proxy()); |