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

Unified Diff: storage/browser/fileapi/local_file_util.cc

Issue 660653006: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | storage/browser/fileapi/native_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/local_file_util.cc
diff --git a/storage/browser/fileapi/local_file_util.cc b/storage/browser/fileapi/local_file_util.cc
index 81bd8651eeff21e795364fb23281069930fa02e9..5f3be4f1f464ff740f544506d416aeba68cf329c 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(
« no previous file with comments | « no previous file | storage/browser/fileapi/native_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698