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

Unified Diff: content/shell/browser/layout_test/layout_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, 2 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/shell/browser/layout_test/layout_test_content_browser_client.cc
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
index 3b25ecdfb4454d3c340439efcc88621c22bcd668..dcfbc2a469352d1593555421efa6483b488a30e3 100644
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
@@ -128,6 +128,20 @@ BrowserMainParts* LayoutTestContentBrowserClient::CreateBrowserMainParts(
return shell_browser_main_parts();
}
+void LayoutTestContentBrowserClient::GetTemporaryStorageConfiguration(
+ BrowserContext* context,
+ const base::FilePath& partition_path, bool is_incognito,
+ const storage::TemporaryStorageConfigurationCallback& callback) {
+ // Default quota for each origin is 5MB.
+ const int kDefaultLayoutTestQuotaBytes = 5 * 1024 * 1024;
+ storage::TemporaryStorageConfiguration config;
+ config.per_host_quota = kDefaultLayoutTestQuotaBytes;
+ config.pool_size = 5 * kDefaultLayoutTestQuotaBytes;
+ config.must_remain_available = kDefaultLayoutTestQuotaBytes;
+ config.refresh_interval = base::TimeDelta::Max();
+ callback.Run(config);
+}
+
PlatformNotificationService*
LayoutTestContentBrowserClient::GetPlatformNotificationService() {
return layout_test_notification_manager_.get();

Powered by Google App Engine
This is Rietveld 408576698