Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index 01dc70688f27b2b916a3fbd5694569667fabb006..855fd098cab6059dfaddf986c79cdf9adedde9ea 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -15,6 +15,7 @@ |
#include "base/sequenced_task_runner.h" |
#include "base/single_thread_task_runner.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "content/browser/blob_storage/chrome_blob_storage_context.h" |
#include "content/browser/browser_main_loop.h" |
#include "content/browser/browsing_data/storage_partition_http_cache_data_remover.h" |
#include "content/browser/fileapi/browser_file_system_helper.h" |
@@ -40,6 +41,7 @@ |
#include "net/url_request/url_request_context_getter.h" |
#include "ppapi/features/features.h" |
#include "services/service_manager/public/cpp/connector.h" |
+#include "storage/browser/blob/blob_storage_context.h" |
#include "storage/browser/database/database_tracker.h" |
#include "storage/browser/quota/quota_manager.h" |
@@ -516,6 +518,10 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create( |
partition->bluetooth_allowed_devices_map_ = new BluetoothAllowedDevicesMap(); |
+ partition->blob_url_loader_factory_ = new BlobURLLoaderFactory( |
+ ChromeBlobStorageContext::GetFor(context)->context()->AsWeakPtr(), |
+ partition->filesystem_context_); |
+ |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableNetworkService)) { |
mojom::NetworkServicePtr network_service; |
@@ -623,6 +629,10 @@ StoragePartitionImpl::GetBluetoothAllowedDevicesMap() { |
return bluetooth_allowed_devices_map_.get(); |
} |
+BlobURLLoaderFactory* StoragePartitionImpl::GetBlobURLLoaderFactory() { |
+ return blob_url_loader_factory_.get(); |
+} |
+ |
void StoragePartitionImpl::OpenLocalStorage( |
const url::Origin& origin, |
mojo::InterfaceRequest<mojom::LevelDBWrapper> request) { |