summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_disk_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_disk_cache.cc')
-rw-r--r--webkit/appcache/appcache_disk_cache.cc5
1 files changed, 3 insertions, 2 deletions
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);
}