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

Unified Diff: webkit/browser/fileapi/file_system_dir_url_request_job.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/browser/fileapi/file_system_dir_url_request_job.cc
diff --git a/webkit/browser/fileapi/file_system_dir_url_request_job.cc b/webkit/browser/fileapi/file_system_dir_url_request_job.cc
index 7589b3732a0b6b704e927caea3934571b63f59ec..07c5d5813db6d043925d05a0c1ce8f84a0a493ba 100644
--- a/webkit/browser/fileapi/file_system_dir_url_request_job.cc
+++ b/webkit/browser/fileapi/file_system_dir_url_request_job.cc
@@ -85,7 +85,7 @@ void FileSystemDirURLRequestJob::StartAsync() {
// In incognito mode the API is not usable and there should be no data.
if (url_.is_valid() && VirtualPath::IsRootPath(url_.virtual_path())) {
// Return an empty directory if the filesystem root is queried.
- DidReadDirectory(base::PLATFORM_FILE_OK,
+ DidReadDirectory(base::File::FILE_OK,
std::vector<DirectoryEntry>(),
false);
return;
@@ -100,12 +100,12 @@ void FileSystemDirURLRequestJob::StartAsync() {
}
void FileSystemDirURLRequestJob::DidReadDirectory(
- base::PlatformFileError result,
+ base::File::Error result,
const std::vector<DirectoryEntry>& entries,
bool has_more) {
- if (result != base::PLATFORM_FILE_OK) {
+ if (result != base::File::FILE_OK) {
int rv = net::ERR_FILE_NOT_FOUND;
- if (result == base::PLATFORM_FILE_ERROR_INVALID_URL)
+ if (result == base::File::FILE_ERROR_INVALID_URL)
rv = net::ERR_INVALID_URL;
NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, rv));
return;
« no previous file with comments | « webkit/browser/fileapi/file_system_dir_url_request_job.h ('k') | webkit/browser/fileapi/file_system_file_stream_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698