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

Issue 2548903002: [OfflinePages] Classifies PRERENDERING_FAILED cases whether to TryNext (Closed)

Created:
4 years ago by dougarnett
Modified:
4 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, asvitkine+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[OfflinePages] Classifies PRERENDERING_FAILED cases whether to TryNext Defines new PRERENDERING_FAILED_NO_NEXT for failure types where the Coordinator should not continue process the next request and now will process the next request for PRERENDERING_FAILED failures. I took a code inspection pass on the prerender code and identified most of the FinalStatus codes we see in UMA into whether they are FAILED, FAILED_NO_RETRY, or FAILED_NO_NEXT. There we a couple I wasn't confident about that I left to default as FAILED. BUG=670529 Committed: https://crrev.com/f9a803de56a74d1f92a07d2ee0934ecd0ca8ace4 Cr-Commit-Position: refs/heads/master@{#436461}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added a PrerenderingLoader unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -15 lines) Patch
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 chunk +24 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 1 2 chunks +26 lines, -1 line 0 comments Download
M components/offline_pages/background/offliner.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/offline_pages/background/request_coordinator_event_logger.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 4 chunks +41 lines, -10 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
dougarnett
4 years ago (2016-12-02 22:24:16 UTC) #4
Pete Williamson
mostly good, one question. https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode65 chrome/browser/android/offline_pages/prerendering_loader.cc:65: return Offliner::RequestStatus::PRERENDERING_FAILED_NO_NEXT; Should we add ...
4 years ago (2016-12-02 23:06:09 UTC) #5
chili
https://codereview.chromium.org/2548903002/diff/1/components/offline_pages/background/offliner.h File components/offline_pages/background/offliner.h (right): https://codereview.chromium.org/2548903002/diff/1/components/offline_pages/background/offliner.h#newcode49 components/offline_pages/background/offliner.h:49: PRERENDERING_FAILED_NO_NEXT = 11, Just a thought as I'm working ...
4 years ago (2016-12-02 23:17:43 UTC) #6
chili
forgot to LGTM :)
4 years ago (2016-12-02 23:21:06 UTC) #7
dougarnett
https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode65 chrome/browser/android/offline_pages/prerendering_loader.cc:65: return Offliner::RequestStatus::PRERENDERING_FAILED_NO_NEXT; On 2016/12/02 23:06:09, Pete Williamson wrote: > ...
4 years ago (2016-12-02 23:50:08 UTC) #11
Pete Williamson
On 2016/12/02 23:50:08, dougarnett wrote: > https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc > File chrome/browser/android/offline_pages/prerendering_loader.cc (right): > > https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode65 > ...
4 years ago (2016-12-02 23:58:02 UTC) #13
Pete Williamson
lgtm
4 years ago (2016-12-02 23:58:09 UTC) #14
chili
Still LGTM On 2016/12/02 23:50:08, dougarnett wrote: > https://codereview.chromium.org/2548903002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc > File chrome/browser/android/offline_pages/prerendering_loader.cc (right): > > ...
4 years ago (2016-12-03 00:01:17 UTC) #18
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/2548903002/20001
4 years ago (2016-12-03 00:03:13 UTC) #19
dougarnett
On 2016/12/03 00:01:17, chili wrote: > Still LGTM > > On 2016/12/02 23:50:08, dougarnett wrote: ...
4 years ago (2016-12-03 00:14:19 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/317936)
4 years ago (2016-12-03 00:16:08 UTC) #22
dougarnett
Steven, can you review added enum value to histograms.xml?
4 years ago (2016-12-05 21:35:01 UTC) #24
Steven Holte
lgtm
4 years ago (2016-12-05 21:53:29 UTC) #25
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/2548903002/20001
4 years ago (2016-12-05 21:55:51 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/282988)
4 years ago (2016-12-05 23:24:14 UTC) #29
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/2548903002/20001
4 years ago (2016-12-05 23:29:38 UTC) #31
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-05 23:53:40 UTC) #33
commit-bot: I haz the power
4 years ago (2016-12-05 23:55:44 UTC) #35
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f9a803de56a74d1f92a07d2ee0934ecd0ca8ace4
Cr-Commit-Position: refs/heads/master@{#436461}

Powered by Google App Engine
This is Rietveld 408576698