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

Unified Diff: chrome/browser/chromeos/drive/local_file_reader.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: chrome/browser/chromeos/drive/local_file_reader.cc
diff --git a/chrome/browser/chromeos/drive/local_file_reader.cc b/chrome/browser/chromeos/drive/local_file_reader.cc
index 5b9b016301ece7f591bc52f367194fbf1e8ba4b9..f7cf425a3cfcbeaf7c4ea7079a7b8cc419b3aec7 100644
--- a/chrome/browser/chromeos/drive/local_file_reader.cc
+++ b/chrome/browser/chromeos/drive/local_file_reader.cc
@@ -41,7 +41,7 @@ int OpenAndSeekOnBlockingPool(const base::FilePath& file_path,
base::CreatePlatformFile(file_path, open_flags, NULL, &error);
if (file == base::kInvalidPlatformFileValue) {
DCHECK_NE(base::PLATFORM_FILE_OK, error);
- return net::PlatformFileErrorToNetError(error);
+ return net::FileErrorToNetError(static_cast<base::File::Error>(error));
}
// If succeeded, seek to the |offset| from begin.
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi_worker_unittest.cc ('k') | chrome/browser/chromeos/drive/resource_entry_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698