Index: blimp/engine/app/blimp_content_browser_client.cc |
diff --git a/blimp/engine/app/blimp_content_browser_client.cc b/blimp/engine/app/blimp_content_browser_client.cc |
index 5e8c42b361bbb22727e74bcba9f63c360ab08984..0a9440599de85849107deb3c3c0761fd0637fce5 100644 |
--- a/blimp/engine/app/blimp_content_browser_client.cc |
+++ b/blimp/engine/app/blimp_content_browser_client.cc |
@@ -8,9 +8,12 @@ |
#include "blimp/engine/app/settings_manager.h" |
#include "blimp/engine/grit/blimp_browser_resources.h" |
#include "blimp/engine/mojo/blob_channel_service.h" |
+#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/common/service_names.mojom.h" |
#include "services/service_manager/public/cpp/interface_registry.h" |
+#include "storage/browser/quota/quota_settings.h" |
#include "ui/base/resource/resource_bundle.h" |
namespace blimp { |
@@ -69,5 +72,16 @@ BlimpContentBrowserClient::GetServiceManifestOverlay( |
return base::JSONReader::Read(manifest_contents); |
} |
+void BlimpContentBrowserClient::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 engine |
} // namespace blimp |