Chromium Code Reviews| Index: content/browser/loader/navigation_url_loader_impl.cc |
| diff --git a/content/browser/loader/navigation_url_loader_impl.cc b/content/browser/loader/navigation_url_loader_impl.cc |
| index 9d7db596e4ae4988ef78a47c31708d1f312178df..b44c8ef60b4eb32cd932adaeeab00a1158d5f51f 100644 |
| --- a/content/browser/loader/navigation_url_loader_impl.cc |
| +++ b/content/browser/loader/navigation_url_loader_impl.cc |
| @@ -11,6 +11,7 @@ |
| #include "content/browser/loader/navigation_url_loader_impl_core.h" |
| #include "content/public/browser/browser_context.h" |
| #include "content/public/browser/browser_thread.h" |
| +#include "content/public/browser/storage_partition.h" |
| #include "content/public/browser/stream_handle.h" |
| namespace content { |
| @@ -24,7 +25,11 @@ NavigationURLLoaderImpl::NavigationURLLoaderImpl( |
| weak_factory_(this) { |
| DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| - core_ = new NavigationURLLoaderImplCore(weak_factory_.GetWeakPtr()); |
| + StoragePartition* partition = BrowserContext::GetStoragePartitionForSite( |
|
michaeln
2015/10/01 01:42:15
another usage of BrowserContext::GetStoragePartiti
Fabrice (no longer in Chrome)
2015/10/01 18:29:55
Added the bug reference.
|
| + browser_context, request_info->common_params.url); |
| + DCHECK(partition); |
| + core_ = new NavigationURLLoaderImplCore(weak_factory_.GetWeakPtr(), |
| + partition->GetServiceWorkerContext()); |
| BrowserThread::PostTask( |
| BrowserThread::IO, FROM_HERE, |
| base::Bind(&NavigationURLLoaderImplCore::Start, base::Unretained(core_), |