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

Unified Diff: content/test/test_content_browser_client.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 4 years, 1 month 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/test/test_content_browser_client.cc
diff --git a/content/test/test_content_browser_client.cc b/content/test/test_content_browser_client.cc
index b766e537bbd56138edca58046d000241fa372829..1e48d0b19d1d5cf0e8bd7d3b07d5d8ef24f64243 100644
--- a/content/test/test_content_browser_client.cc
+++ b/content/test/test_content_browser_client.cc
@@ -6,6 +6,7 @@
#include "base/files/file_path.h"
#include "base/logging.h"
+#include "storage/browser/quota/quota_settings.h"
namespace content {
@@ -23,4 +24,12 @@ base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() {
return download_dir_.GetPath();
}
+void TestContentBrowserClient::GetQuotaSettings(
+ BrowserContext* context,
+ const base::FilePath& partition_path,
+ bool is_incognito,
+ const storage::OptionalQuotaSettingsCallback& callback) {
+ callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024));
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698