summaryrefslogtreecommitdiffstats
path: root/content/browser/file_system/file_system_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/file_system/file_system_browsertest.cc')
-rw-r--r--content/browser/file_system/file_system_browsertest.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/content/browser/file_system/file_system_browsertest.cc b/content/browser/file_system/file_system_browsertest.cc
index 52a28b4..06715014 100644
--- a/content/browser/file_system/file_system_browsertest.cc
+++ b/content/browser/file_system/file_system_browsertest.cc
@@ -63,19 +63,6 @@ class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest {
kTemporaryStorageQuotaMaxSize, browser()->profile()->GetQuotaManager());
}
- class SetTempQuotaCallback : public quota::QuotaCallback {
- public:
- void Run(quota::QuotaStatusCode, quota::StorageType, int64) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- }
-
- void RunWithParams(const Tuple3<quota::QuotaStatusCode,
- quota::StorageType,
- int64>& params) {
- Run(params.a, params.b, params.c);
- }
- };
-
static void SetTempQuota(int64 bytes, scoped_refptr<QuotaManager> qm) {
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
@@ -84,7 +71,7 @@ class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest {
return;
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- qm->SetTemporaryGlobalQuota(bytes, new SetTempQuotaCallback);
+ qm->SetTemporaryGlobalOverrideQuota(bytes, NULL);
// Don't return until the quota has been set.
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(