Index: headless/lib/browser/headless_content_browser_client.cc |
diff --git a/headless/lib/browser/headless_content_browser_client.cc b/headless/lib/browser/headless_content_browser_client.cc |
index b863c60fe58e942385a6e0e3b8eb2b52bc84324d..fb74d28a2e6919cda41e4ecb2b9e89298742a43b 100644 |
--- a/headless/lib/browser/headless_content_browser_client.cc |
+++ b/headless/lib/browser/headless_content_browser_client.cc |
@@ -19,6 +19,7 @@ |
#include "headless/lib/browser/headless_browser_impl.h" |
#include "headless/lib/browser/headless_browser_main_parts.h" |
#include "headless/lib/browser/headless_devtools_manager_delegate.h" |
+#include "storage/browser/quota/quota_settings.h" |
#include "ui/base/resource/resource_bundle.h" |
namespace headless { |
@@ -64,4 +65,16 @@ HeadlessContentBrowserClient::GetServiceManifestOverlay( |
return base::JSONReader::Read(manifest_contents); |
} |
+void HeadlessContentBrowserClient::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 headless |