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

Unified Diff: chrome/browser/media_galleries/win/mtp_device_operations_util.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/win/mtp_device_operations_util.cc
diff --git a/chrome/browser/media_galleries/win/mtp_device_operations_util.cc b/chrome/browser/media_galleries/win/mtp_device_operations_util.cc
index f2c681d756034e416da6d60162ec4ea61576df01..c120637a016f65ec913e44be5288fd4d863f7c7b 100644
--- a/chrome/browser/media_galleries/win/mtp_device_operations_util.cc
+++ b/chrome/browser/media_galleries/win/mtp_device_operations_util.cc
@@ -316,16 +316,16 @@ base::win::ScopedComPtr<IPortableDevice> OpenDevice(
return base::win::ScopedComPtr<IPortableDevice>();
}
-base::PlatformFileError GetFileEntryInfo(
+base::File::Error GetFileEntryInfo(
IPortableDevice* device,
const base::string16& object_id,
- base::PlatformFileInfo* file_entry_info) {
+ base::File::Info* file_entry_info) {
DCHECK(device);
DCHECK(!object_id.empty());
DCHECK(file_entry_info);
MTPDeviceObjectEntry entry;
if (!GetMTPDeviceObjectEntry(device, object_id, &entry))
- return base::PLATFORM_FILE_ERROR_NOT_FOUND;
+ return base::File::FILE_ERROR_NOT_FOUND;
file_entry_info->size = entry.size;
file_entry_info->is_directory = entry.is_directory;
@@ -333,7 +333,7 @@ base::PlatformFileError GetFileEntryInfo(
file_entry_info->last_modified = entry.last_modified_time;
file_entry_info->last_accessed = entry.last_modified_time;
file_entry_info->creation_time = base::Time();
- return base::PLATFORM_FILE_OK;
+ return base::File::FILE_OK;
}
bool GetDirectoryEntries(IPortableDevice* device,

Powered by Google App Engine
This is Rietveld 408576698