Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1164)

Unified Diff: content/browser/storage_partition_impl.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: poolSize Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 5088f2bb4d392a859dcc0383ecba14730505ec63..bed70ef390587fa8388d27f7382cb1f4c4aa7e51 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -22,10 +22,12 @@
#include "content/common/dom_storage/dom_storage_types.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/dom_storage_context.h"
#include "content/public/browser/indexed_db_context.h"
#include "content/public/browser/local_storage_usage_info.h"
#include "content/public/browser/session_storage_usage_info.h"
+#include "content/public/common/content_client.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
#include "net/cookies/canonical_cookie.h"
@@ -443,7 +445,9 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
in_memory, partition_path,
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO).get(),
BrowserThread::GetTaskRunnerForThread(BrowserThread::DB).get(),
- context->GetSpecialStoragePolicy());
+ context->GetSpecialStoragePolicy(),
+ GetContentClient()->browser()->
+ GetTemporaryStorageConfigurationFunction(context));
// Each consumer is responsible for registering its QuotaClient during
// its construction.

Powered by Google App Engine
This is Rietveld 408576698