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

Issue 1410343007: Add "SHOW ALL SAVED PAGES" button to offline error page (Closed)

Created:
5 years, 1 month ago by jianli
Modified:
4 years, 4 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, edwardjung
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add "SHOW ALL SAVED PAGES" button to offline error page BUG=491352 Committed: https://crrev.com/6aabf843cd095e658636f191a9959d1185d45b64 Cr-Commit-Position: refs/heads/master@{#359205}

Patch Set 1 : Patch #

Total comments: 9

Patch Set 2 : Rebase and one fix #

Patch Set 3 : Address feedback #

Total comments: 4

Patch Set 4 : Address more feedback #

Total comments: 8

Patch Set 5 : Address newt's feedback #

Patch Set 6 : Restore #

Total comments: 2

Patch Set 7 : Address one more feedback #

Total comments: 4

Patch Set 8 : Address thestig's feedback #

Patch Set 9 : Fix trybots #

Patch Set 10 : Remove unneeded dep #

Patch Set 11 : Fix histograms #

Patch Set 12 : Rebase #

Patch Set 13 : Fix after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -31 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 2 3 4 5 6 7 4 chunks +31 lines, -0 lines 0 comments Download
M chrome/common/localized_error.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/localized_error.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/renderer/net/net_error_helper.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/net/net_error_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +24 lines, -1 line 0 comments Download
M chrome/renderer/net/net_error_page_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/net/net_error_page_controller.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/resources/neterror.html View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/resources/neterror.js View 4 chunks +28 lines, -11 lines 0 comments Download
M components/error_page/common/net_error_info.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/error_page/renderer/net_error_helper_core.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +16 lines, -1 line 0 comments Download
M components/error_page/renderer/net_error_helper_core.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +24 lines, -3 lines 0 comments Download
M components/error_page/renderer/net_error_helper_core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +43 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (16 generated)
jianli
mmenke for error page changes newt for android changes rkaplow for UMA
5 years, 1 month ago (2015-11-05 09:22:08 UTC) #4
mmenke
[+edwardjung]: FYI.
5 years, 1 month ago (2015-11-05 15:44:26 UTC) #5
mmenke
https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc File components/error_page/renderer/net_error_helper_core.cc (right): https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc#newcode602 components/error_page/renderer/net_error_helper_core.cc:602: RecordEvent(NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN); This changes the meaning of the old histograms ...
5 years, 1 month ago (2015-11-05 15:55:50 UTC) #6
mmenke
https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc File chrome/common/localized_error.cc (right): https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc#newcode771 chrome/common/localized_error.cc:771: if (has_offline_pages) { One other question: Should we do ...
5 years, 1 month ago (2015-11-05 16:18:12 UTC) #7
edwardjung
https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc File chrome/common/localized_error.cc (right): https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc#newcode771 chrome/common/localized_error.cc:771: if (has_offline_pages) { On 2015/11/05 16:18:12, mmenke wrote: > ...
5 years, 1 month ago (2015-11-05 17:08:01 UTC) #9
jianli
https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc File chrome/common/localized_error.cc (right): https://codereview.chromium.org/1410343007/diff/40001/chrome/common/localized_error.cc#newcode771 chrome/common/localized_error.cc:771: if (has_offline_pages) { On 2015/11/05 17:08:01, edwardjung wrote: > ...
5 years, 1 month ago (2015-11-06 00:04:41 UTC) #10
mmenke
https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc File components/error_page/renderer/net_error_helper_core.cc (right): https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc#newcode602 components/error_page/renderer/net_error_helper_core.cc:602: RecordEvent(NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN); On 2015/11/06 00:04:40, jianli wrote: > On 2015/11/05 ...
5 years, 1 month ago (2015-11-06 17:43:02 UTC) #11
jianli
https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc File components/error_page/renderer/net_error_helper_core.cc (right): https://codereview.chromium.org/1410343007/diff/40001/components/error_page/renderer/net_error_helper_core.cc#newcode602 components/error_page/renderer/net_error_helper_core.cc:602: RecordEvent(NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN); On 2015/11/06 17:43:02, mmenke wrote: > On 2015/11/06 ...
5 years, 1 month ago (2015-11-09 19:19:09 UTC) #12
mmenke
LGTM, modulo comments. https://codereview.chromium.org/1410343007/diff/80001/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://codereview.chromium.org/1410343007/diff/80001/chrome/browser/net/net_error_tab_helper.cc#newcode126 chrome/browser/net/net_error_tab_helper.cc:126: #if defined(OS_ANDROID) Should we use a ...
5 years, 1 month ago (2015-11-09 19:31:44 UTC) #13
jianli
https://codereview.chromium.org/1410343007/diff/80001/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://codereview.chromium.org/1410343007/diff/80001/chrome/browser/net/net_error_tab_helper.cc#newcode126 chrome/browser/net/net_error_tab_helper.cc:126: #if defined(OS_ANDROID) On 2015/11/09 19:31:44, mmenke wrote: > Should ...
5 years, 1 month ago (2015-11-09 21:59:52 UTC) #14
newt (away)
https://codereview.chromium.org/1410343007/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410343007/diff/100001/chrome/app/generated_resources.grd#newcode8797 chrome/app/generated_resources.grd:8797: + <message name="IDS_ERRORPAGES_BUTTON_SHOW_SAVED_PAGES" desc="Label for the button on an ...
5 years, 1 month ago (2015-11-09 22:15:13 UTC) #15
jianli
https://codereview.chromium.org/1410343007/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410343007/diff/100001/chrome/app/generated_resources.grd#newcode8797 chrome/app/generated_resources.grd:8797: + <message name="IDS_ERRORPAGES_BUTTON_SHOW_SAVED_PAGES" desc="Label for the button on an ...
5 years, 1 month ago (2015-11-09 23:08:56 UTC) #16
mmenke
MAy want to think about integration tests here - without them, concerned the wiring between ...
5 years, 1 month ago (2015-11-09 23:11:47 UTC) #17
jianli
https://codereview.chromium.org/1410343007/diff/100001/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://codereview.chromium.org/1410343007/diff/100001/chrome/browser/net/net_error_tab_helper.cc#newcode284 chrome/browser/net/net_error_tab_helper.cc:284: void NetErrorTabHelper::SetHasOfflinePages( On 2015/11/09 23:11:47, mmenke wrote: > On ...
5 years, 1 month ago (2015-11-10 00:14:26 UTC) #18
newt (away)
lgtm after comment about combining strings https://codereview.chromium.org/1410343007/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410343007/diff/140001/chrome/app/generated_resources.grd#newcode8801 chrome/app/generated_resources.grd:8801: + Show all ...
5 years, 1 month ago (2015-11-10 18:27:33 UTC) #19
rkaplow
lgtm histograms lgtm
5 years, 1 month ago (2015-11-10 18:51:23 UTC) #20
jianli
thakis, can you approve chrome changes? https://codereview.chromium.org/1410343007/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410343007/diff/140001/chrome/app/generated_resources.grd#newcode8801 chrome/app/generated_resources.grd:8801: + Show all ...
5 years, 1 month ago (2015-11-10 21:53:13 UTC) #22
jianli
thestig, could you please review and approve common changes in chrome? thanks.
5 years, 1 month ago (2015-11-11 00:42:31 UTC) #24
Lei Zhang
lgtm for chrome/ code that's non-android and non-net. https://codereview.chromium.org/1410343007/diff/160001/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://codereview.chromium.org/1410343007/diff/160001/chrome/browser/net/net_error_tab_helper.cc#newcode288 chrome/browser/net/net_error_tab_helper.cc:288: web_contents() ...
5 years, 1 month ago (2015-11-11 00:55:58 UTC) #25
jianli
https://codereview.chromium.org/1410343007/diff/160001/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://codereview.chromium.org/1410343007/diff/160001/chrome/browser/net/net_error_tab_helper.cc#newcode288 chrome/browser/net/net_error_tab_helper.cc:288: web_contents() ? TabAndroid::FromWebContents(web_contents()) : nullptr; On 2015/11/11 00:55:57, Lei ...
5 years, 1 month ago (2015-11-11 01:16:47 UTC) #26
jianli
dcheng, could you please reveiw new IPC?
5 years, 1 month ago (2015-11-11 01:17:05 UTC) #28
jianli
dimich, could you please review offline_pages DEP added to chrome/common/DEPS? thanks.
5 years, 1 month ago (2015-11-11 01:18:40 UTC) #30
dcheng
ipc changes lgtm
5 years, 1 month ago (2015-11-11 20:19:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410343007/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410343007/220001
5 years, 1 month ago (2015-11-11 22:09:30 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/121969) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-11 22:13:03 UTC) #36
fgorski
On 2015/11/11 22:13:03, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-11-11 22:16:13 UTC) #37
jianli
On 2015/11/11 22:16:13, fgorski wrote: > On 2015/11/11 22:13:03, commit-bot: I haz the power wrote: ...
5 years, 1 month ago (2015-11-11 22:19:51 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410343007/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410343007/260001
5 years, 1 month ago (2015-11-11 22:37:05 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/28669)
5 years, 1 month ago (2015-11-11 23:02:56 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410343007/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410343007/280001
5 years, 1 month ago (2015-11-11 23:15:14 UTC) #46
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years, 1 month ago (2015-11-12 01:17:50 UTC) #47
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 20:02:39 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6aabf843cd095e658636f191a9959d1185d45b64
Cr-Commit-Position: refs/heads/master@{#359205}

Powered by Google App Engine
This is Rietveld 408576698