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

Unified Diff: chrome/browser/android/offline_pages/prerendering_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 | « chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/prerendering_offliner.cc
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner.cc b/chrome/browser/android/offline_pages/prerendering_offliner.cc
index 899bc1070eb66a479878c82f7a481f5d586dbec4..a8afa1758733595723433b567b3db0b1598fcb65 100644
--- a/chrome/browser/android/offline_pages/prerendering_offliner.cc
+++ b/chrome/browser/android/offline_pages/prerendering_offliner.cc
@@ -157,7 +157,9 @@ void PrerenderingOffliner::OnSavePageDone(
// Determine status and run the completion callback.
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 (saved_on_last_retry_)
save_status = RequestStatus::SAVED_ON_LAST_RETRY;
else
« no previous file with comments | « chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698