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

Unified Diff: content/browser/quota/mock_quota_manager.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: rebase Created 3 years, 10 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
« no previous file with comments | « content/browser/quota/mock_quota_manager.h ('k') | content/browser/quota/mock_quota_manager_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/quota/mock_quota_manager.cc
diff --git a/content/browser/quota/mock_quota_manager.cc b/content/browser/quota/mock_quota_manager.cc
index 73407970de53a73d28cea6edf0eadad2994108eb..65e197a109b198adda47d2c33ffd71ea2d84785a 100644
--- a/content/browser/quota/mock_quota_manager.cc
+++ b/content/browser/quota/mock_quota_manager.cc
@@ -44,14 +44,13 @@ MockQuotaManager::MockQuotaManager(
profile_path,
io_thread,
db_thread,
- special_storage_policy),
- weak_factory_(this) {
-}
+ special_storage_policy,
+ storage::GetQuotaSettingsFunc()),
+ weak_factory_(this) {}
-void MockQuotaManager::GetUsageAndQuota(
- const GURL& origin,
- storage::StorageType type,
- const GetUsageAndQuotaCallback& callback) {
+void MockQuotaManager::GetUsageAndQuota(const GURL& origin,
+ storage::StorageType type,
+ const UsageAndQuotaCallback& callback) {
StorageInfo& info = usage_and_quota_map_[std::make_pair(origin, type)];
callback.Run(storage::kQuotaStatusOk, info.usage, info.quota);
}
« no previous file with comments | « content/browser/quota/mock_quota_manager.h ('k') | content/browser/quota/mock_quota_manager_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698