Index: content/browser/in_process_webkit/indexed_db_browsertest.cc |
diff --git a/content/browser/in_process_webkit/indexed_db_browsertest.cc b/content/browser/in_process_webkit/indexed_db_browsertest.cc |
index 9390481fb3e168498b9bc85494d8c40fafa92839..a3f5557990c77033e0779f859c9f87d5462bdec8 100644 |
--- a/content/browser/in_process_webkit/indexed_db_browsertest.cc |
+++ b/content/browser/in_process_webkit/indexed_db_browsertest.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/file_path.h" |
#include "base/file_util.h" |
@@ -225,17 +226,11 @@ class IndexedDBBrowserTestWithLowQuota : public IndexedDBBrowserTest { |
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 DidSetTempQuota(quota::QuotaStatusCode status, |
+ quota::StorageType type, |
+ int64 quota) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
+ } |
static void SetTempQuota(int64 bytes, scoped_refptr<QuotaManager> qm) { |
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
@@ -245,7 +240,9 @@ class IndexedDBBrowserTestWithLowQuota : public IndexedDBBrowserTest { |
return; |
} |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
- qm->SetTemporaryGlobalQuota(bytes, new SetTempQuotaCallback); |
+ qm->SetTemporaryGlobalQuota( |
+ bytes, |
+ base::Bind(&IndexedDBBrowserTestWithLowQuota::DidSetTempQuota)); |
// Don't return until the quota has been set. |
scoped_refptr<base::ThreadTestHelper> helper( |
new base::ThreadTestHelper( |