From 42c459638320b53e684fcebd60b6eca45f2cdea4 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Sat, 17 Dec 2011 02:20:23 +0000 Subject: Reland after fixes. base::Bind: Remove even moar OldCompletionCallback. BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114896 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_disk_cache.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webkit/appcache') diff --git a/webkit/appcache/appcache_disk_cache.cc b/webkit/appcache/appcache_disk_cache.cc index 1f9033b..4a9f9ff 100644 --- a/webkit/appcache/appcache_disk_cache.cc +++ b/webkit/appcache/appcache_disk_cache.cc @@ -49,7 +49,7 @@ class AppCacheDiskCache::EntryImpl : public Entry { }; // Separate object to hold state for each Create, Delete, or Doom call -// while the call is inflight and to produce an EntryImpl upon completion. +// while the call is in-flight and to produce an EntryImpl upon completion. class AppCacheDiskCache::ActiveCall { public: explicit ActiveCall(AppCacheDiskCache* owner) @@ -72,7 +72,8 @@ class AppCacheDiskCache::ActiveCall { int DoomEntry(int64 key, net::OldCompletionCallback* callback) { int rv = owner_->disk_cache()->DoomEntry( - base::Int64ToString(key), &async_completion_); + base::Int64ToString(key), + base::Bind(&ActiveCall::OnAsyncCompletion, base::Unretained(this))); return HandleImmediateReturnValue(rv, NULL, callback); } -- cgit v1.1