Index: content/public/browser/content_browser_client.cc |
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc |
index e78e78a52091046836870a95495b54b0e204a8f9..81e86b2654ff999b2e20fc8dd5792698e24c8fae 100644 |
--- a/content/public/browser/content_browser_client.cc |
+++ b/content/public/browser/content_browser_client.cc |
@@ -233,6 +233,21 @@ ContentBrowserClient::GetTemporaryStorageEvictionPolicy( |
return std::unique_ptr<storage::QuotaEvictionPolicy>(); |
} |
+namespace { |
+void DefaultTemporaryStorageConfigurationFunction( |
+ const base::FilePath& profile_path, bool is_incognito, |
+ storage::TemporaryStorageConfigurationCallback callback) { |
+ // By default, no quota is provided, embedders must override. |
+ callback.Run(storage::TemporaryStorageConfiguration()); |
+} |
+} // namespace |
+ |
+storage::GetTemporaryStorageConfigurationFunc |
+ContentBrowserClient::GetTemporaryStorageConfigurationFunction( |
kinuko
2016/07/27 14:23:25
I felt it might be slightly awkward to return a ca
michaeln
2016/07/27 19:57:47
That's another option, a virtual method that retur
|
+ BrowserContext* context) { |
+ return base::Bind(&DefaultTemporaryStorageConfigurationFunction); |
+} |
+ |
void ContentBrowserClient::SelectClientCertificate( |
WebContents* web_contents, |
net::SSLCertRequestInfo* cert_request_info, |