Index: webkit/fileapi/isolated_mount_point_provider.cc |
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc |
index a11731d4e61b5c0eee432bd6e453712abdca7850..62135a822954be7257e3bd0d7adf6b8d99545076 100644 |
--- a/webkit/fileapi/isolated_mount_point_provider.cc |
+++ b/webkit/fileapi/isolated_mount_point_provider.cc |
@@ -131,7 +131,8 @@ FileSystemOperation* IsolatedMountPointProvider::CreateFileSystemOperation( |
*error_code = base::PLATFORM_FILE_ERROR_NOT_FOUND; |
return NULL; |
} |
- operation_context->set_mtp_device_delegate(device_delegate); |
+ operation_context->set_mtp_device_delegate( |
+ device_delegate->GetAsWeakPtrOnIOThread()); |
operation_context->set_task_runner(device_delegate->GetMediaTaskRunner()); |
operation_context->set_media_path_filter(media_path_filter_.get()); |
} |