diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/browser/fileapi/local_file_util.cc | 9 | ||||
-rw-r--r-- | storage/browser/fileapi/native_file_util.cc | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/storage/browser/fileapi/local_file_util.cc b/storage/browser/fileapi/local_file_util.cc index 81bd865..5f3be4f 100644 --- a/storage/browser/fileapi/local_file_util.cc +++ b/storage/browser/fileapi/local_file_util.cc @@ -139,13 +139,12 @@ scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> LocalFileUtil:: base::FilePath file_path; if (GetLocalFilePath(context, root_url, &file_path) != base::File::FILE_OK) { - return make_scoped_ptr(new EmptyFileEnumerator) - .PassAs<FileSystemFileUtil::AbstractFileEnumerator>(); + return make_scoped_ptr(new EmptyFileEnumerator); } return make_scoped_ptr(new LocalFileEnumerator( - file_path, root_url.path(), - base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES)) - .PassAs<FileSystemFileUtil::AbstractFileEnumerator>(); + file_path, + root_url.path(), + base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES)); } base::File::Error LocalFileUtil::GetLocalFilePath( diff --git a/storage/browser/fileapi/native_file_util.cc b/storage/browser/fileapi/native_file_util.cc index b1ffd3d..84b9463 100644 --- a/storage/browser/fileapi/native_file_util.cc +++ b/storage/browser/fileapi/native_file_util.cc @@ -206,9 +206,9 @@ scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> NativeFileUtil::CreateFileEnumerator(const base::FilePath& root_path, bool recursive) { return make_scoped_ptr(new NativeFileEnumerator( - root_path, recursive, - base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES)) - .PassAs<FileSystemFileUtil::AbstractFileEnumerator>(); + root_path, + recursive, + base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES)); } base::File::Error NativeFileUtil::Touch( |