Commit 1b43d7c8 authored by Adrienne Walker's avatar Adrienne Walker Committed by Commit Bot

cachestorage: clean up unneeded BrowserContext dep

This is unused, so remove it.

Change-Id: Ia14d59c610bba75edd843d2f88f948ba4761ff29
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210964
Commit-Queue: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarBen Kelly <wanderview@chromium.org>
Auto-Submit: enne <enne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771663}
parent 2d0443f4
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "content/browser/cache_storage/cache_storage_quota_client.h" #include "content/browser/cache_storage/cache_storage_quota_client.h"
#include "content/browser/cache_storage/cross_sequence/cross_sequence_cache_storage_manager.h" #include "content/browser/cache_storage/cross_sequence/cross_sequence_cache_storage_manager.h"
#include "content/browser/cache_storage/legacy/legacy_cache_storage_manager.h" #include "content/browser/cache_storage/legacy/legacy_cache_storage_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h" #include "content/public/browser/browser_thread.h"
#include "storage/browser/blob/blob_storage_context.h" #include "storage/browser/blob/blob_storage_context.h"
...@@ -50,8 +49,7 @@ scoped_refptr<base::SequencedTaskRunner> CreateSchedulerTaskRunner() { ...@@ -50,8 +49,7 @@ scoped_refptr<base::SequencedTaskRunner> CreateSchedulerTaskRunner() {
} // namespace } // namespace
CacheStorageContextImpl::CacheStorageContextImpl( CacheStorageContextImpl::CacheStorageContextImpl()
BrowserContext* browser_context)
: task_runner_(CreateSchedulerTaskRunner()), : task_runner_(CreateSchedulerTaskRunner()),
observers_(base::MakeRefCounted<ObserverList>()) { observers_(base::MakeRefCounted<ObserverList>()) {
DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK_CURRENTLY_ON(BrowserThread::UI);
......
...@@ -39,7 +39,6 @@ class Origin; ...@@ -39,7 +39,6 @@ class Origin;
namespace content { namespace content {
class BrowserContext;
class ChromeBlobStorageContext; class ChromeBlobStorageContext;
class CacheStorageDispatcherHost; class CacheStorageDispatcherHost;
class CacheStorageManager; class CacheStorageManager;
...@@ -65,7 +64,7 @@ class CONTENT_EXPORT CacheStorageContextWithManager ...@@ -65,7 +64,7 @@ class CONTENT_EXPORT CacheStorageContextWithManager
class CONTENT_EXPORT CacheStorageContextImpl class CONTENT_EXPORT CacheStorageContextImpl
: public CacheStorageContextWithManager { : public CacheStorageContextWithManager {
public: public:
explicit CacheStorageContextImpl(BrowserContext* browser_context); CacheStorageContextImpl();
class Observer { class Observer {
public: public:
......
...@@ -2207,8 +2207,6 @@ class CodeCacheHostInterceptor ...@@ -2207,8 +2207,6 @@ class CodeCacheHostInterceptor
class CacheStorageContextForBadOrigin : public CacheStorageContextImpl { class CacheStorageContextForBadOrigin : public CacheStorageContextImpl {
public: public:
CacheStorageContextForBadOrigin() : CacheStorageContextImpl(nullptr) {}
scoped_refptr<CacheStorageManager> CacheManager() override { scoped_refptr<CacheStorageManager> CacheManager() override {
// The CodeCacheHostImpl should not try to access the CacheManager() // The CodeCacheHostImpl should not try to access the CacheManager()
// if the origin is bad. // if the origin is bad.
......
...@@ -1258,7 +1258,7 @@ void StoragePartitionImpl::Initialize() { ...@@ -1258,7 +1258,7 @@ void StoragePartitionImpl::Initialize() {
base::CreateSingleThreadTaskRunner({BrowserThread::IO}), base::CreateSingleThreadTaskRunner({BrowserThread::IO}),
/*task_runner=*/nullptr); /*task_runner=*/nullptr);
cache_storage_context_ = new CacheStorageContextImpl(browser_context_); cache_storage_context_ = new CacheStorageContextImpl();
cache_storage_context_->Init( cache_storage_context_->Init(
path, browser_context_->GetSpecialStoragePolicy(), quota_manager_proxy); path, browser_context_->GetSpecialStoragePolicy(), quota_manager_proxy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment