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 d5f0c8a9377123d756d721a79fd41d67585ff6e8..e87872514cf16c66a86e101836b33d8120ab32d9 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" |
@@ -341,6 +342,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, |