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

Unified Diff: services/navigation/content_client/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: services/navigation/content_client/content_browser_client.cc
diff --git a/services/navigation/content_client/content_browser_client.cc b/services/navigation/content_client/content_browser_client.cc
index c7010b35fe1e32926f9eb828362a181e9f2cf3b2..fd89821eeeb39db8be8e6f417c073bd9521b5158 100644
--- a/services/navigation/content_client/content_browser_client.cc
+++ b/services/navigation/content_client/content_browser_client.cc
@@ -8,11 +8,13 @@
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/common/service_info.h"
#include "content/public/common/service_manager_connection.h"
#include "content/shell/browser/shell_browser_context.h"
#include "services/navigation/content_client/browser_main_parts.h"
#include "services/navigation/navigation.h"
+#include "storage/browser/quota/quota_settings.h"
namespace navigation {
@@ -41,4 +43,16 @@ void ContentBrowserClient::RegisterInProcessServices(
base::MakeUnique<Navigation>());
}
+void ContentBrowserClient::GetQuotaSettings(
+ content::BrowserContext* context,
+ const base::FilePath& partition_path,
+ bool is_incognito,
+ const storage::OptionalQuotaSettingsCallback& callback) {
+ content::BrowserThread::PostTaskAndReplyWithResult(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::Bind(&storage::CalculateNominalDynamicSettings, partition_path,
+ is_incognito),
+ callback);
+}
+
} // namespace navigation

Powered by Google App Engine
This is Rietveld 408576698