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

Unified Diff: webkit/fileapi/file_system_operation.cc

Issue 8315012: base::Bind: Convert FileUtilProxy::GetFileInfoCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pipelining. 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
Index: webkit/fileapi/file_system_operation.cc
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index 238978d3309dad8315f07018059e8767ad0b0ed4..f95d4f57747dace1105ffae5a3ac829c7fbc5af2 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -310,9 +310,9 @@ void FileSystemOperation::DirectoryExists(const GURL& path) {
if (!file_system_operation_context_.src_file_util())
file_system_operation_context_.set_src_file_util(file_util);
FileSystemFileUtilProxy::GetFileInfo(
- file_system_operation_context_,
- proxy_, virtual_path, callback_factory_.NewCallback(
- &FileSystemOperation::DidDirectoryExists));
+ file_system_operation_context_, proxy_, virtual_path,
+ base::Bind(&FileSystemOperation::DidDirectoryExists,
+ weak_factory_.GetWeakPtr()));
}
void FileSystemOperation::FileExists(const GURL& path) {
@@ -335,9 +335,9 @@ void FileSystemOperation::FileExists(const GURL& path) {
if (!file_system_operation_context_.src_file_util())
file_system_operation_context_.set_src_file_util(file_util);
FileSystemFileUtilProxy::GetFileInfo(
- file_system_operation_context_,
- proxy_, virtual_path, callback_factory_.NewCallback(
- &FileSystemOperation::DidFileExists));
+ file_system_operation_context_, proxy_, virtual_path,
+ base::Bind(&FileSystemOperation::DidFileExists,
+ weak_factory_.GetWeakPtr()));
}
void FileSystemOperation::GetMetadata(const GURL& path) {
@@ -360,9 +360,9 @@ void FileSystemOperation::GetMetadata(const GURL& path) {
if (!file_system_operation_context_.src_file_util())
file_system_operation_context_.set_src_file_util(file_util);
FileSystemFileUtilProxy::GetFileInfo(
- file_system_operation_context_,
- proxy_, virtual_path, callback_factory_.NewCallback(
- &FileSystemOperation::DidGetMetadata));
+ file_system_operation_context_, proxy_, virtual_path,
+ base::Bind(&FileSystemOperation::DidGetMetadata,
+ weak_factory_.GetWeakPtr()));
}
void FileSystemOperation::ReadDirectory(const GURL& path) {

Powered by Google App Engine
This is Rietveld 408576698