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

Unified Diff: chrome/browser/chromeos/drive/file_system/download_operation.cc

Issue 304183005: drive: Always use last_modified stored in ResourceEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/download_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/download_operation.cc b/chrome/browser/chromeos/drive/file_system/download_operation.cc
index 18f7546e8ec5d260b8c603379d5af6541e97b18e..ba89f002951724c52ccf689267dfc2c059b97f88 100644
--- a/chrome/browser/chromeos/drive/file_system/download_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/download_operation.cc
@@ -114,7 +114,7 @@ FileError CheckPreConditionForEnsureFileDownloaded(
return FILE_ERROR_FAILED;
*cache_file_path = gdoc_file_path;
- SetPlatformFileInfoToResourceEntry(file_info, entry);
+ entry->mutable_file_info()->set_size(file_info.size);
return FILE_ERROR_OK;
}
@@ -164,7 +164,7 @@ FileError CheckPreConditionForEnsureFileDownloaded(
// drive::FileSystem::CheckLocalModificationAndRun. We should merge them.
base::File::Info file_info;
if (base::GetFileInfo(*cache_file_path, &file_info))
- SetPlatformFileInfoToResourceEntry(file_info, entry);
+ entry->mutable_file_info()->set_size(file_info.size);
return FILE_ERROR_OK;
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.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