Index: chromecast/browser/cast_content_browser_client.cc |
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc |
index 7d9e4a3379d3e55d2b7943d3151788d7117efd92..071298b58770fdbb8fc71f20a27eb3f8b7ad75e5 100644 |
--- a/chromecast/browser/cast_content_browser_client.cc |
+++ b/chromecast/browser/cast_content_browser_client.cc |
@@ -47,6 +47,7 @@ |
#include "content/public/browser/client_certificate_delegate.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/resource_dispatcher_host.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/content_descriptors.h" |
#include "content/public/common/content_switches.h" |
@@ -322,6 +323,16 @@ CastContentBrowserClient::CreateQuotaPermissionContext() { |
return new CastQuotaPermissionContext(); |
} |
+void CastContentBrowserClient::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); |
+} |
void CastContentBrowserClient::AllowCertificateError( |
content::WebContents* web_contents, |
int cert_error, |