| Index: content/browser/download/save_item.cc
|
| diff --git a/content/browser/download/save_item.cc b/content/browser/download/save_item.cc
|
| index 9e516204202074978e14e03f609ce24bc83f0b50..9d962036363832b4d60ca16f107cd8bbe9d19890 100644
|
| --- a/content/browser/download/save_item.cc
|
| +++ b/content/browser/download/save_item.cc
|
| @@ -25,6 +25,7 @@ SaveItem::SaveItem(const GURL& url,
|
| state_(WAIT_START),
|
| has_final_name_(false),
|
| is_success_(false),
|
| + last_data_received_(false),
|
| save_source_(save_source),
|
| package_(package) {
|
| DCHECK(package);
|
| @@ -130,4 +131,9 @@ void SaveItem::SetTotalBytes(int64 total_bytes) {
|
| total_bytes_ = total_bytes;
|
| }
|
|
|
| +void SaveItem::SetLastDataReceived() {
|
| + DCHECK_EQ(state_, IN_PROGRESS);
|
| + last_data_received_ = true;
|
| +}
|
| +
|
| } // namespace content
|
|
|