Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(937)

Unified Diff: chrome/browser/android/offline_pages/background_loader_offliner.cc

Issue 2835253002: Treat already existing saved pages as success. (Closed)
Patch Set: Fix build error Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/background_loader_offliner.cc
diff --git a/chrome/browser/android/offline_pages/background_loader_offliner.cc b/chrome/browser/android/offline_pages/background_loader_offliner.cc
index 74d0f08af3773e979efb8e6c79bc350401de8e94..f92edfa8885a696187659898d118512e5a93d9a3 100644
--- a/chrome/browser/android/offline_pages/background_loader_offliner.cc
+++ b/chrome/browser/android/offline_pages/background_loader_offliner.cc
@@ -409,7 +409,9 @@ void BackgroundLoaderOffliner::OnPageSaved(SavePageResult save_result,
save_state_ = NONE;
Offliner::RequestStatus save_status;
- if (save_result == SavePageResult::SUCCESS) {
+ if (save_result == SavePageResult::ALREADY_EXISTS) {
+ save_status = RequestStatus::SAVED;
+ } else if (save_result == SavePageResult::SUCCESS) {
if (did_snapshot_on_last_retry)
save_status = RequestStatus::SAVED_ON_LAST_RETRY;
else
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698