Commit 44a2e6f1 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Download shelf : Title for offline item

Bug: 881499
Change-Id: Icbf4bdeabbe59f60ff4ca971fd7db868c13e9426
Reviewed-on: https://chromium-review.googlesource.com/1250138Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594970}
parent 0885982e
......@@ -80,6 +80,11 @@ void OfflineItemModel::SetWasUINotified(bool was_ui_notified) {
data->was_ui_notified_ = was_ui_notified;
}
base::FilePath OfflineItemModel::GetFileNameToReportUser() const {
return offline_item_ ? base::FilePath::FromUTF8Unsafe(offline_item_->title)
: base::FilePath();
}
base::FilePath OfflineItemModel::GetTargetFilePath() const {
return offline_item_ ? offline_item_->file_path : base::FilePath();
}
......
......@@ -39,6 +39,7 @@ class OfflineItemModel : public DownloadUIModel,
int PercentComplete() const override;
bool WasUINotified() const override;
void SetWasUINotified(bool should_notify) override;
base::FilePath GetFileNameToReportUser() const override;
base::FilePath GetTargetFilePath() const override;
void OpenDownload() override;
void Pause() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment