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

Issue 2656763002: [Offline pages] Add navigation error handling to background loader. (Closed)

Created:
3 years, 11 months ago by chili
Modified:
3 years, 10 months ago
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Add navigation error handling to background loader. This ensures that we don't try to download any net error pages. BUG=691141 Review-Url: https://codereview.chromium.org/2656763002 Cr-Commit-Position: refs/heads/master@{#450146} Committed: https://chromium.googlesource.com/chromium/src/+/91941581b49f242755c8246fb788ec2ceeee65bd

Patch Set 1 #

Total comments: 6

Patch Set 2 : code review update #

Total comments: 2

Patch Set 3 : compile fixes #

Patch Set 4 : move some errors to non-catch, so we can notify user #

Total comments: 6

Patch Set 5 : cl comments and format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -5 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 1 2 3 4 5 chunks +55 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc View 1 2 3 4 4 chunks +30 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (18 generated)
chili
3 years, 11 months ago (2017-01-25 02:13:56 UTC) #4
fgorski
lgtm Please fix nit and add bug to the CL description. https://codereview.chromium.org/2656763002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): ...
3 years, 11 months ago (2017-01-25 17:05:14 UTC) #7
Pete Williamson
Mostly looks good, one question. https://codereview.chromium.org/2656763002/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/2656763002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode137 chrome/browser/android/offline_pages/background_loader_offliner.cc:137: Offliner::RequestStatus::LOADING_FAILED_NO_RETRY); Why NO_RETRY? It ...
3 years, 11 months ago (2017-01-25 18:34:26 UTC) #8
Dmitry Titov
drive-by: https://codereview.chromium.org/2656763002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.h File chrome/browser/android/offline_pages/background_loader_offliner.h (right): https://codereview.chromium.org/2656763002/diff/1/chrome/browser/android/offline_pages/background_loader_offliner.h#newcode81 chrome/browser/android/offline_pages/background_loader_offliner.h:81: bool is_error_; naming nit: perhaps it can be ...
3 years, 11 months ago (2017-01-25 19:36:55 UTC) #10
chili
Updated CL with a list of non-retriable net errors. Please take a look and determine ...
3 years, 10 months ago (2017-01-31 20:07:38 UTC) #11
Pete Williamson
https://codereview.chromium.org/2656763002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2656763002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode227 chrome/browser/android/offline_pages/background_loader_offliner.cc:227: page_load_state_ = LOADING_FAILED; RETRIABLE?
3 years, 10 months ago (2017-01-31 23:19:49 UTC) #12
chili
https://codereview.chromium.org/2656763002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2656763002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode227 chrome/browser/android/offline_pages/background_loader_offliner.cc:227: page_load_state_ = LOADING_FAILED; On 2017/01/31 23:19:49, Pete Williamson wrote: ...
3 years, 10 months ago (2017-02-01 00:34:59 UTC) #13
Pete Williamson
lgtm
3 years, 10 months ago (2017-02-01 17:19:55 UTC) #14
chili
From lunch conversation, we've decided that it's probably useful to show the user some error ...
3 years, 10 months ago (2017-02-03 18:57:22 UTC) #15
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/2656763002/60001
3 years, 10 months ago (2017-02-07 19:24:51 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/227537)
3 years, 10 months ago (2017-02-07 20:44:03 UTC) #20
fgorski
https://codereview.chromium.org/2656763002/diff/60001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2656763002/diff/60001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode137 chrome/browser/android/offline_pages/background_loader_offliner.cc:137: if (page_load_state_ == RETRIABLE) can you inline with ?: ...
3 years, 10 months ago (2017-02-07 21:42:23 UTC) #21
Pete Williamson
still LGTM
3 years, 10 months ago (2017-02-09 00:18:46 UTC) #22
Dmitry Titov
Offline discussion capture: It is a probably a good thing to let user know the ...
3 years, 10 months ago (2017-02-09 23:36:58 UTC) #23
fgorski
please add a bug number to this change.
3 years, 10 months ago (2017-02-10 23:36:30 UTC) #26
chili
https://codereview.chromium.org/2656763002/diff/60001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2656763002/diff/60001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode137 chrome/browser/android/offline_pages/background_loader_offliner.cc:137: if (page_load_state_ == RETRIABLE) On 2017/02/07 21:42:23, fgorski wrote: ...
3 years, 10 months ago (2017-02-11 00:32:08 UTC) #29
chili
On 2017/02/10 23:36:30, fgorski wrote: > please add a bug number to this change. done
3 years, 10 months ago (2017-02-11 20:41:46 UTC) #31
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/2656763002/80001
3 years, 10 months ago (2017-02-13 22:21:55 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 23:20:51 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/91941581b49f242755c8246fb788...

Powered by Google App Engine
This is Rietveld 408576698