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

Issue 2835253002: Treat already existing saved pages as success. (Closed)

Created:
3 years, 8 months ago by Pete Williamson
Modified:
3 years, 8 months ago
Reviewers:
chili, romax, fgorski
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Treat already existing saved pages as success. In some cases, we ran into a failure mode where we saved off a copy of a page, but then failed. When we retried, we were getting a result of ALREADY_EXISTS for the page, but we treated it as an error, which meant we could never succeed for that page. We now treat ALREADY_EXISTS as a success case. Added a new unit test to check the new code. BUG=704726 Review-Url: https://codereview.chromium.org/2835253002 Cr-Commit-Position: refs/heads/master@{#467025} Committed: https://chromium.googlesource.com/chromium/src/+/85242f08db71684cbba4bcf94cce92ed91d9726f

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR feedback per FGorski #

Patch Set 3 : Fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc View 1 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
Pete Williamson
3 years, 8 months ago (2017-04-24 18:18:15 UTC) #3
chili
lgtm but you might need a committer to take a look :D
3 years, 8 months ago (2017-04-24 18:21:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835253002/1
3 years, 8 months ago (2017-04-24 19:33:50 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-24 19:33:52 UTC) #12
Pete Williamson
Adding Romax for committer review.
3 years, 8 months ago (2017-04-24 19:44:18 UTC) #15
romax
lgtm
3 years, 8 months ago (2017-04-24 19:50:42 UTC) #16
fgorski
https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode368 chrome/browser/android/offline_pages/background_loader_offliner.cc:368: save_result == SavePageResult::ALREADY_EXISTS) { Hey, 3 questions: 1. Did ...
3 years, 8 months ago (2017-04-24 19:51:51 UTC) #18
Pete Williamson
https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode368 chrome/browser/android/offline_pages/background_loader_offliner.cc:368: save_result == SavePageResult::ALREADY_EXISTS) { On 2017/04/24 19:51:51, fgorski wrote: ...
3 years, 8 months ago (2017-04-25 00:09:00 UTC) #20
fgorski
On 2017/04/25 00:09:00, Pete Williamson wrote: > https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc > File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): > > https://codereview.chromium.org/2835253002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode368 ...
3 years, 8 months ago (2017-04-25 16:42:26 UTC) #28
fgorski
lgtm, Would adding tests to prerendering offliner be hard thou?
3 years, 8 months ago (2017-04-25 16:43:37 UTC) #29
Pete Williamson
On 2017/04/25 16:43:37, fgorski wrote: > lgtm, > > Would adding tests to prerendering offliner ...
3 years, 8 months ago (2017-04-25 17:04:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835253002/40001
3 years, 8 months ago (2017-04-25 17:04:44 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 17:10:45 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/85242f08db71684cbba4bcf94cce...

Powered by Google App Engine
This is Rietveld 408576698