| Index: content/browser/storage_partition_impl_map.cc
|
| diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
|
| index 656469c889e802b2ee7acd6bfeeb89bc2c3c8088..6e0864186009938aee3bd9941c482f8e46d9050d 100644
|
| --- a/content/browser/storage_partition_impl_map.cc
|
| +++ b/content/browser/storage_partition_impl_map.cc
|
| @@ -19,6 +19,7 @@
|
| #include "content/browser/fileapi/chrome_blob_storage_context.h"
|
| #include "content/browser/loader/resource_request_info_impl.h"
|
| #include "content/browser/resource_context_impl.h"
|
| +#include "content/browser/service_worker/service_worker_request_interceptor.h"
|
| #include "content/browser/storage_partition_impl.h"
|
| #include "content/browser/streams/stream.h"
|
| #include "content/browser/streams/stream_context.h"
|
| @@ -411,17 +412,22 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
|
| CreateDevToolsProtocolHandler(browser_context_->GetResourceContext(),
|
| browser_context_->IsOffTheRecord()));
|
|
|
| + ProtocolHandlerScopedVector protocol_interceptors;
|
| + protocol_interceptors.push_back(new ServiceWorkerRequestInterceptor);
|
| +
|
| // These calls must happen after StoragePartitionImpl::Create().
|
| if (partition_domain.empty()) {
|
| partition->SetURLRequestContext(
|
| GetContentClient()->browser()->CreateRequestContext(
|
| browser_context_,
|
| - &protocol_handlers));
|
| + &protocol_handlers,
|
| + protocol_interceptors.Pass()));
|
| } else {
|
| partition->SetURLRequestContext(
|
| GetContentClient()->browser()->CreateRequestContextForStoragePartition(
|
| browser_context_, partition->GetPath(), in_memory,
|
| - &protocol_handlers));
|
| + &protocol_handlers,
|
| + protocol_interceptors.Pass()));
|
| }
|
| partition->SetMediaURLRequestContext(
|
| partition_domain.empty() ?
|
|
|