| Index: components/offline_pages/background/save_page_request.cc
|
| diff --git a/components/offline_pages/background/save_page_request.cc b/components/offline_pages/background/save_page_request.cc
|
| index f9372f340a47373ef44a7cb5940d925d810265e5..e5424d703611034e35a24bc1d32703e5aefb6915 100644
|
| --- a/components/offline_pages/background/save_page_request.cc
|
| +++ b/components/offline_pages/background/save_page_request.cc
|
| @@ -78,4 +78,12 @@ void SavePageRequest::MarkAttemptCompleted() {
|
| last_attempt_time_ = base::Time();
|
| }
|
|
|
| +void SavePageRequest::MarkAttemptAborted() {
|
| + DCHECK_GT(attempt_count_, 0);
|
| + last_attempt_time_ = base::Time();
|
| + // TODO(dougarnett): Would be safer if we had two persisted counters
|
| + // (attempts_started and attempts_completed) rather just one with decrement.
|
| + --attempt_count_;
|
| +}
|
| +
|
| } // namespace offline_pages
|
|
|