Index: net/url_request/view_cache_helper.cc |
diff --git a/net/url_request/view_cache_helper.cc b/net/url_request/view_cache_helper.cc |
index e0f6456ac29e6d67565a9c79adbadd3493ae644f..fbebb480392e5a476c9b897a3699d712af402bf7 100644 |
--- a/net/url_request/view_cache_helper.cc |
+++ b/net/url_request/view_cache_helper.cc |
@@ -4,6 +4,8 @@ |
#include "net/url_request/view_cache_helper.h" |
+#include "base/bind.h" |
+#include "base/bind_helpers.h" |
#include "base/stringprintf.h" |
#include "net/base/escape.h" |
#include "net/base/io_buffer.h" |
@@ -242,7 +244,9 @@ int ViewCacheHelper::DoGetBackendComplete(int result) { |
int ViewCacheHelper::DoOpenNextEntry() { |
next_state_ = STATE_OPEN_NEXT_ENTRY_COMPLETE; |
- return disk_cache_->OpenNextEntry(&iter_, &entry_, &cache_callback_); |
+ return disk_cache_->OpenNextEntry( |
+ &iter_, &entry_, |
+ base::Bind(&ViewCacheHelper::OnIOComplete, base::Unretained(this))); |
} |
int ViewCacheHelper::DoOpenNextEntryComplete(int result) { |