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

Unified Diff: content/shell/browser/shell_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/shell/browser/shell_content_browser_client.cc
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index e5475cd511750421e9d97d0137a69a97c6b2a52f..c1d29d6db8c7e01a72920504500b010868e5d1e0 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -39,6 +39,7 @@
#include "content/shell/common/shell_switches.h"
#include "grit/shell_resources.h"
#include "net/url_request/url_request_context_getter.h"
+#include "storage/browser/quota/quota_settings.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
#include "url/origin.h"
@@ -279,6 +280,14 @@ ShellContentBrowserClient::CreateQuotaPermissionContext() {
return new ShellQuotaPermissionContext();
}
+void ShellContentBrowserClient::GetQuotaSettings(
+ BrowserContext* context,
+ const base::FilePath& partition_path,
+ bool is_incognito,
+ const storage::OptionalQuotaSettingsCallback& callback) {
+ callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024));
+}
+
void ShellContentBrowserClient::SelectClientCertificate(
WebContents* web_contents,
net::SSLCertRequestInfo* cert_request_info,

Powered by Google App Engine
This is Rietveld 408576698