diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:20:23 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:20:23 +0000 |
commit | 42c459638320b53e684fcebd60b6eca45f2cdea4 (patch) | |
tree | a05eb30440e2156175d89ce731098d0d4d4dc32b /webkit/appcache | |
parent | 4189b0de2312dc216ce2938a88b794c1987fe2eb (diff) | |
download | chromium_src-42c459638320b53e684fcebd60b6eca45f2cdea4.zip chromium_src-42c459638320b53e684fcebd60b6eca45f2cdea4.tar.gz chromium_src-42c459638320b53e684fcebd60b6eca45f2cdea4.tar.bz2 |
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
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_disk_cache.cc | 5 |
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); } |