Index: ash/shell/content/client/shell_content_browser_client.cc |
diff --git a/ash/shell/content/client/shell_content_browser_client.cc b/ash/shell/content/client/shell_content_browser_client.cc |
index 60da70666966b9330102da77e219b8249a79aaf4..7cb284d631c8b6b60b45171614364ebd7fda1db9 100644 |
--- a/ash/shell/content/client/shell_content_browser_client.cc |
+++ b/ash/shell/content/client/shell_content_browser_client.cc |
@@ -8,6 +8,10 @@ |
#include "ash/shell/content/client/shell_browser_main_parts.h" |
#include "base/command_line.h" |
+#include "content/public/browser/browser_context.h" |
+#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/storage_partition.h" |
+#include "storage/browser/quota/quota_settings.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
namespace ash { |
@@ -24,5 +28,16 @@ content::BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts( |
return shell_browser_main_parts_; |
} |
+void ShellContentBrowserClient::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 examples |
} // namespace views |