| Index: chrome/browser/chromeos/drive/file_cache.cc
|
| diff --git a/chrome/browser/chromeos/drive/file_cache.cc b/chrome/browser/chromeos/drive/file_cache.cc
|
| index 86dcedbe6b13a2bfd9127cee2c0083f126bd42db..b8dec708531180a09c10f70521d854e171c0411b 100644
|
| --- a/chrome/browser/chromeos/drive/file_cache.cc
|
| +++ b/chrome/browser/chromeos/drive/file_cache.cc
|
| @@ -591,6 +591,22 @@ void FileCache::CloseForWrite(const std::string& id) {
|
| --it->second;
|
| if (it->second == 0)
|
| write_opened_files_.erase(it);
|
| +
|
| + // Update last modified date.
|
| + ResourceEntry entry;
|
| + FileError error = storage_->GetEntry(id, &entry);
|
| + if (error != FILE_ERROR_OK) {
|
| + LOG(ERROR) << "Failed to get entry: " << id << ", "
|
| + << FileErrorToString(error);
|
| + return;
|
| + }
|
| + entry.mutable_file_info()->set_last_modified(
|
| + base::Time::Now().ToInternalValue());
|
| + error = storage_->PutEntry(entry);
|
| + if (error != FILE_ERROR_OK) {
|
| + LOG(ERROR) << "Failed to put entry: " << id << ", "
|
| + << FileErrorToString(error);
|
| + }
|
| }
|
|
|
| } // namespace internal
|
|
|