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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_file_stream_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/media_galleries/fileapi/mtp_file_stream_reader.cc
diff --git a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
index c1bd017f775938aff455e4667da83440cddeb6da..77babee65a4f3869fe3b580dfbc6f84a850cbdc0 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
+++ b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
@@ -27,14 +27,14 @@ MTPDeviceAsyncDelegate* GetMTPDeviceDelegate(
void CallCompletionCallbackWithPlatformFileError(
const net::CompletionCallback& callback,
- base::PlatformFileError platform_file_error) {
- callback.Run(net::PlatformFileErrorToNetError(platform_file_error));
+ base::File::Error file_error) {
+ callback.Run(net::FileErrorToNetError(file_error));
}
void CallInt64CompletionCallbackWithPlatformFileError(
const net::Int64CompletionCallback& callback,
- base::PlatformFileError platform_file_error) {
- callback.Run(net::PlatformFileErrorToNetError(platform_file_error));
+ base::File::Error file_error) {
+ callback.Run(net::FileErrorToNetError(file_error));
}
} // namespace
@@ -94,7 +94,7 @@ void MTPFileStreamReader::OnFileInfoForRead(
net::IOBuffer* buf,
int buf_len,
const net::CompletionCallback& callback,
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
if (!VerifySnapshotTime(expected_modification_time_, file_info)) {
@@ -134,7 +134,7 @@ void MTPFileStreamReader::FinishRead(const net::CompletionCallback& callback,
void MTPFileStreamReader::FinishGetLength(
const net::Int64CompletionCallback& callback,
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
if (!VerifySnapshotTime(expected_modification_time_, file_info)) {

Powered by Google App Engine
This is Rietveld 408576698