| 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 ba89f002951724c52ccf689267dfc2c059b97f88..c52102de883df39ffdb0d7320c84efedaa80ea5c 100644
|
| --- a/chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| +++ b/chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/task_runner_util.h"
|
| #include "chrome/browser/chromeos/drive/drive.pb.h"
|
| #include "chrome/browser/chromeos/drive/file_cache.h"
|
| +#include "chrome/browser/chromeos/drive/file_change.h"
|
| #include "chrome/browser/chromeos/drive/file_errors.h"
|
| #include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
|
| #include "chrome/browser/chromeos/drive/file_system_util.h"
|
| @@ -528,8 +529,12 @@ void DownloadOperation::EnsureFileDownloadedAfterUpdateLocalState(
|
| return;
|
| }
|
|
|
| + FileChange changed_files;
|
| + changed_files.Update(file_path,
|
| + FileChange::FILE_TYPE_FILE,
|
| + FileChange::ADD_OR_UPDATE);
|
| // Storing to cache changes the "offline available" status, hence notify.
|
| - observer_->OnDirectoryChangedByOperation(file_path.DirName());
|
| + observer_->OnDirectoryChangedByOperation(changed_files);
|
| params->OnDownloadCompleted(*cache_file_path, entry_after_update.Pass());
|
| }
|
|
|
|
|