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

Issue 2608553002: [OfflinePages] Improve visiblity/handling of "Loading not started" case (Closed)

Created:
3 years, 11 months ago by dougarnett
Modified:
3 years, 11 months 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] Improve visiblity/handling of "Loading not started" case The IsPrerenderingPossible() no longer is applicable to the "offline" origin prerender requests (it is now more tied to NoStatePrefetch setting) so this stops prematurely checking it (via CanPrerender()) and instead passes request to PrerenderManager to let is decide whether it accepts the "offline" origin request or not. Also adds new Offliner RequestStatus code LOADING_NOT_ACCEPTED to add clarity between the RC not trying to start the request vs. the Offliner not accepting it. BUG=677189 Committed: https://crrev.com/9033511eba1ce7c9b06a4372df9030ccd177353b Cr-Commit-Position: refs/heads/master@{#441573}

Patch Set 1 #

Patch Set 2 : Fixed test #

Total comments: 6

Patch Set 3 : Deprecated NOT_STARTED status and added new status code for RequestQueue update error path. Also fi… #

Total comments: 2

Patch Set 4 : Addes ! low-end device default to test Setup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -116 lines) Patch
M chrome/browser/android/offline_pages/prerender_adapter.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/prerender_adapter.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/prerender_adapter_unittest.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 7 chunks +0 lines, -33 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/offline_pages/core/background/offliner.h View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M components/offline_pages/core/background/request_coordinator.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M components/offline_pages/core/background/request_coordinator_event_logger.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M components/offline_pages/core/background/request_coordinator_unittest.cc View 1 2 3 12 chunks +18 lines, -38 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 31 (20 generated)
dougarnett
Pete, maybe we can discuss what this is about on Tuesday or so.
3 years, 11 months ago (2016-12-29 17:42:25 UTC) #10
Pete Williamson
https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/offliner.h File components/offline_pages/core/background/offliner.h (right): https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/offliner.h#newcode43 components/offline_pages/core/background/offliner.h:43: // The RequestCoordinator did not start loading the request. ...
3 years, 11 months ago (2017-01-03 20:22:53 UTC) #11
dougarnett
https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/offliner.h File components/offline_pages/core/background/offliner.h (right): https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/offliner.h#newcode43 components/offline_pages/core/background/offliner.h:43: // The RequestCoordinator did not start loading the request. ...
3 years, 11 months ago (2017-01-04 22:23:43 UTC) #14
Pete Williamson
https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/request_coordinator_event_logger.cc File components/offline_pages/core/background/request_coordinator_event_logger.cc (right): https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/request_coordinator_event_logger.cc#newcode38 components/offline_pages/core/background/request_coordinator_event_logger.cc:38: case Offliner::LOADING_NOT_ACCEPTED: On 2017/01/04 22:23:43, dougarnett wrote: > On ...
3 years, 11 months ago (2017-01-04 22:31:41 UTC) #15
dougarnett
https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/request_coordinator_event_logger.cc File components/offline_pages/core/background/request_coordinator_event_logger.cc (right): https://codereview.chromium.org/2608553002/diff/20001/components/offline_pages/core/background/request_coordinator_event_logger.cc#newcode38 components/offline_pages/core/background/request_coordinator_event_logger.cc:38: case Offliner::LOADING_NOT_ACCEPTED: On 2017/01/04 22:31:41, Pete Williamson wrote: > ...
3 years, 11 months ago (2017-01-04 23:04:59 UTC) #18
dougarnett
Steven, can you review histogram enum change here? Deprecated one enum value and added two ...
3 years, 11 months ago (2017-01-04 23:07:21 UTC) #20
Steven Holte
histograms lgtm
3 years, 11 months ago (2017-01-04 23:32:20 UTC) #21
Pete Williamson
lgtm (Sorry, I didn't think the low end device change would be that much work, ...
3 years, 11 months ago (2017-01-05 01:23:47 UTC) #24
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/2608553002/60001
3 years, 11 months ago (2017-01-05 02:55:51 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-05 03:47:00 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 03:50:38 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9033511eba1ce7c9b06a4372df9030ccd177353b
Cr-Commit-Position: refs/heads/master@{#441573}

Powered by Google App Engine
This is Rietveld 408576698