Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: net/tools/dump_cache/upgrade.cc

Issue 8956014: base::Bind: Cleanup almost-unused OldCompletionCallbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/mock_http_cache.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/upgrade.cc
diff --git a/net/tools/dump_cache/upgrade.cc b/net/tools/dump_cache/upgrade.cc
index b3a13127b91601f8a4a31e07e914fef933bef69a..b5e7dd13839fbc857475b5122139658b335ed983 100644
--- a/net/tools/dump_cache/upgrade.cc
+++ b/net/tools/dump_cache/upgrade.cc
@@ -2,6 +2,8 @@
// 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/bind_helpers.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -733,9 +735,9 @@ int32 SlaveSM::GetEntryFromList() {
int rv;
if (input_->msg.command == GET_NEXT_ENTRY) {
- rv = cache_->OpenNextEntry(&iterator_,
- reinterpret_cast<disk_cache::Entry**>(&entry_),
- &next_callback_);
+ rv = cache_->OpenNextEntry(
+ &iterator_, reinterpret_cast<disk_cache::Entry**>(&entry_),
+ base::Bind(&SlaveSM::DoGetEntryComplete, base::Unretained(this)));
} else {
DCHECK(input_->msg.command == GET_PREV_ENTRY);
rv = cache_->OpenPrevEntry(&iterator_,
« no previous file with comments | « net/http/mock_http_cache.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698