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

Unified Diff: webkit/fileapi/file_system_operation.cc

Issue 8322009: base::Bind: Convert FileUtilProxy::ReadDirectoryCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months 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 | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.cc
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index f95d4f57747dace1105ffae5a3ac829c7fbc5af2..8ccc52d2279c1bb4a97cb0b4fc5bf7be7d43a361 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -385,9 +385,9 @@ void FileSystemOperation::ReadDirectory(const GURL& path) {
if (!file_system_operation_context_.src_file_util())
file_system_operation_context_.set_src_file_util(file_util);
FileSystemFileUtilProxy::ReadDirectory(
- file_system_operation_context_,
- proxy_, virtual_path, callback_factory_.NewCallback(
- &FileSystemOperation::DidReadDirectory));
+ file_system_operation_context_, proxy_, virtual_path,
+ base::Bind(&FileSystemOperation::DidReadDirectory,
+ weak_factory_.GetWeakPtr()));
}
void FileSystemOperation::Remove(const GURL& path, bool recursive) {
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698