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

Unified Diff: ui/views_content_client/views_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 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 | « ui/views_content_client/views_content_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views_content_client/views_content_browser_client.cc
diff --git a/ui/views_content_client/views_content_browser_client.cc b/ui/views_content_client/views_content_browser_client.cc
index 29b6decd0be6d4153f4c63cfccdea39c27ed4fed..f8c5a8540646bf70c0227fdb90b29ca87e279513 100644
--- a/ui/views_content_client/views_content_browser_client.cc
+++ b/ui/views_content_client/views_content_browser_client.cc
@@ -4,6 +4,10 @@
#include "ui/views_content_client/views_content_browser_client.h"
+#include "content/public/browser/browser_context.h"
+#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
+#include "storage/browser/quota/quota_settings.h"
#include "ui/views_content_client/views_content_client_main_parts.h"
namespace ui {
@@ -24,4 +28,15 @@ content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts(
return views_content_main_parts_;
}
+void ViewsContentBrowserClient::GetQuotaSettings(
+ content::BrowserContext* context,
+ content::StoragePartition* partition,
+ const storage::OptionalQuotaSettingsCallback& callback) {
+ content::BrowserThread::PostTaskAndReplyWithResult(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::Bind(&storage::CalculateNominalDynamicSettings,
+ partition->GetPath(), context->IsOffTheRecord()),
+ callback);
+}
+
} // namespace ui
« no previous file with comments | « ui/views_content_client/views_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698