summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation_write_unittest.cc
diff options
context:
space:
mode:
authortzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 14:11:03 +0000
committertzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 14:11:03 +0000
commit4d99be5a3d20c3a3654f282328065f9ff54d6f39 (patch)
treeb355c0c05f4879373ab23998dfb49253ff6f9e9e /webkit/fileapi/file_system_operation_write_unittest.cc
parent58ae297434a9e33d1006c52b6d13d8a78e3b7e5e (diff)
downloadchromium_src-4d99be5a3d20c3a3654f282328065f9ff54d6f39.zip
chromium_src-4d99be5a3d20c3a3654f282328065f9ff54d6f39.tar.gz
chromium_src-4d99be5a3d20c3a3654f282328065f9ff54d6f39.tar.bz2
Use base::Callback in Quota related code.
BUG=None TEST='Compilation should finished successfull and all quota related tests should be passed.' Review URL: http://codereview.chromium.org/8070001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation_write_unittest.cc')
-rw-r--r--webkit/fileapi/file_system_operation_write_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/fileapi/file_system_operation_write_unittest.cc b/webkit/fileapi/file_system_operation_write_unittest.cc
index 8a00927..7d211c6 100644
--- a/webkit/fileapi/file_system_operation_write_unittest.cc
+++ b/webkit/fileapi/file_system_operation_write_unittest.cc
@@ -50,10 +50,10 @@ class MockQuotaManager : public QuotaManager {
usage_(0),
quota_(quota) {}
- virtual void GetUsageAndQuota(const GURL& origin, quota::StorageType type,
- GetUsageAndQuotaCallback* callback) {
- callback->Run(quota::kQuotaStatusOk, usage_, quota_);
- delete callback;
+ virtual void GetUsageAndQuota(
+ const GURL& origin, quota::StorageType type,
+ const GetUsageAndQuotaCallback& callback) OVERRIDE {
+ callback.Run(quota::kQuotaStatusOk, usage_, quota_);
}
void set_usage(int64 usage) { usage_ = usage; }