Chromium Code Reviews| 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_; |
|
fgorski
2016/08/04 06:01:34
based on discussion we had today with pete, dimich
dougarnett
2016/08/04 16:24:38
So change MarkAttemptStarted and MarkAttemptComple
dougarnett
2016/08/04 16:45:28
Pondering a bit more, I think we should keep this
|
| +} |
| + |
| } // namespace offline_pages |