Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: content/shell/browser/layout_test/layout_test_browser_main_parts.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/layout_test/layout_test_browser_main_parts.cc
diff --git a/content/shell/browser/layout_test/layout_test_browser_main_parts.cc b/content/shell/browser/layout_test/layout_test_browser_main_parts.cc
index 10642eeed88e2bebb46132fe93b3702531abab00..ee9934ad4795fb0e4285c30ec4201feb4a99ce54 100644
--- a/content/shell/browser/layout_test/layout_test_browser_main_parts.cc
+++ b/content/shell/browser/layout_test/layout_test_browser_main_parts.cc
@@ -26,7 +26,6 @@
#include "net/base/filename_util.h"
#include "net/base/net_module.h"
#include "net/grit/net_resources.h"
-#include "storage/browser/quota/quota_manager.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
@@ -50,13 +49,6 @@
namespace content {
-namespace {
-
-// Default quota for each origin is 5MB.
-const int kDefaultLayoutTestQuotaBytes = 5 * 1024 * 1024;
-
-} // namespace
-
LayoutTestBrowserMainParts::LayoutTestBrowserMainParts(
const MainFunctionParams& parameters)
: ShellBrowserMainParts(parameters) {
@@ -71,18 +63,6 @@ void LayoutTestBrowserMainParts::InitializeBrowserContexts() {
}
void LayoutTestBrowserMainParts::InitializeMessageLoopContext() {
- storage::QuotaManager* quota_manager =
- BrowserContext::GetDefaultStoragePartition(browser_context())
- ->GetQuotaManager();
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&storage::QuotaManager::SetTemporaryGlobalOverrideQuota,
- quota_manager,
- kDefaultLayoutTestQuotaBytes *
- storage::QuotaManager::kPerHostTemporaryPortion,
- storage::QuotaCallback()));
-
#if defined(ENABLE_PLUGINS)
PluginService* plugin_service = PluginService::GetInstance();
plugin_service_filter_.reset(new ShellPluginServiceFilter);

Powered by Google App Engine
This is Rietveld 408576698