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

Unified Diff: chrome/browser/media_galleries/linux/mtp_read_file_worker.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/linux/mtp_read_file_worker.cc
diff --git a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
index 8c7eddbc11f59728c4a36c0d1dc5c8471e134196..e27113cd4c272d144d345ca02b842e730bea7e9c 100644
--- a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
+++ b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
@@ -47,7 +47,7 @@ MTPReadFileWorker::~MTPReadFileWorker() {
void MTPReadFileWorker::WriteDataIntoSnapshotFile(
const SnapshotRequestInfo& request_info,
- const base::PlatformFileInfo& snapshot_file_info) {
+ const base::File::Info& snapshot_file_info) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
ReadDataChunkFromDeviceFile(
make_scoped_ptr(new SnapshotFileDetails(request_info,
@@ -128,7 +128,7 @@ void MTPReadFileWorker::OnDidWriteIntoSnapshotFile(
content::BrowserThread::IO,
FROM_HERE,
base::Bind(snapshot_file_details->error_callback(),
- base::PLATFORM_FILE_ERROR_FAILED));
+ base::File::FILE_ERROR_FAILED));
return;
}
content::BrowserThread::PostTask(

Powered by Google App Engine
This is Rietveld 408576698