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

Unified Diff: chrome/browser/chromeos/drive/file_system_proxy.cc

Issue 14671020: FileAPI: Copy base::FileUtilProxy::Entry to fileapi::DirectoryEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.cc b/chrome/browser/chromeos/drive/file_system_proxy.cc
index 6a7c598f8fe1b101e74c2ae136373c84a3ed60da..3c2090a5af6dbc1b9015d1baf459f75b8f65d706 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/file_system_proxy.cc
@@ -153,13 +153,13 @@ void DidCloseFileForTruncate(
} // namespace
-base::FileUtilProxy::Entry ResourceEntryToFileUtilProxyEntry(
+FileSystemOperation::Entry ResourceEntryToFileSystemOperationEntry(
const ResourceEntry& resource_entry) {
base::PlatformFileInfo file_info;
util::ConvertResourceEntryToPlatformFileInfo(
resource_entry.file_info(), &file_info);
- base::FileUtilProxy::Entry entry;
+ FileSystemOperation::Entry entry;
entry.name = resource_entry.base_name();
entry.is_directory = file_info.is_directory;
entry.size = file_info.size;
@@ -269,7 +269,7 @@ void FileSystemProxy::ReadDirectory(
FROM_HERE,
base::Bind(callback,
base::PLATFORM_FILE_ERROR_NOT_FOUND,
- std::vector<base::FileUtilProxy::Entry>(),
+ std::vector<FileSystemOperation::Entry>(),
false));
return;
}
@@ -800,13 +800,13 @@ void FileSystemProxy::OnReadDirectory(
if (error != FILE_ERROR_OK) {
callback.Run(FileErrorToPlatformError(error),
- std::vector<base::FileUtilProxy::Entry>(),
+ std::vector<FileSystemOperation::Entry>(),
false);
return;
}
DCHECK(resource_entries.get());
- std::vector<base::FileUtilProxy::Entry> entries;
+ std::vector<FileSystemOperation::Entry> entries;
// Convert Drive files to something File API stack can understand.
for (size_t i = 0; i < resource_entries->size(); ++i) {
const ResourceEntry& resource_entry = (*resource_entries)[i];
@@ -815,7 +815,7 @@ void FileSystemProxy::OnReadDirectory(
hide_hosted_documents) {
continue;
}
- entries.push_back(ResourceEntryToFileUtilProxyEntry(resource_entry));
+ entries.push_back(ResourceEntryToFileSystemOperationEntry(resource_entry));
}
callback.Run(base::PLATFORM_FILE_OK, entries, false);

Powered by Google App Engine
This is Rietveld 408576698