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

Issue 2038963002: [Offline Pages] Link the internals page with the offline model and request (Closed)

Created:
4 years, 6 months ago by chili
Modified:
4 years, 6 months ago
Reviewers:
dpapad, Dan Beam, dewittj
CC:
arv+watch_chromium.org, asvitkine+watch_chromium.org, chromium-reviews, groby-ooo-7-16
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Link the internals page with the offline model and request coordinators - Adds functionality to 'dump' all content into a csv file for download. - Adds adds the resource files to closure BUG=609570 DIFF_BASE=2003883002 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/27d6f0a481a7f73b7dd60f894000c8d22f735332 Cr-Commit-Position: refs/heads/master@{#399818}

Patch Set 1 #

Patch Set 2 : try dependency fix #

Patch Set 3 : try to fix patch dependency #2 #

Total comments: 25

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 78

Patch Set 6 : #

Total comments: 16

Patch Set 7 : More code review comment fixes #

Total comments: 2

Patch Set 8 : More code review comment fixes #

Patch Set 9 : More code review comment fixes #

Total comments: 7

Patch Set 10 : Download JSON rather than CSV #

Total comments: 29

Patch Set 11 : changing from csv to json #

Patch Set 12 : changing from csv to json #

Total comments: 6

Patch Set 13 : small fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -93 lines) Patch
A + chrome/browser/resources/offline_pages/compiled_resources2.gyp View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/offline_pages/offline_internals.html View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/offline_pages/offline_internals.js View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +75 lines, -58 lines 0 comments Download
M chrome/browser/ui/webui/offline_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +206 lines, -31 lines 0 comments Download
M third_party/closure_compiler/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 58 (13 generated)
chili
Hopefully the base CL won't change much. This adds in hooks for the actual offline ...
4 years, 6 months ago (2016-06-03 22:01:01 UTC) #4
dewittj
If you set the upstream branch in your local git repo to another branch that ...
4 years, 6 months ago (2016-06-03 22:14:33 UTC) #7
chili
On 2016/06/03 22:14:33, dewittj wrote: > If you set the upstream branch in your local ...
4 years, 6 months ago (2016-06-03 22:28:01 UTC) #8
dewittj
nice. https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/resources/offline_pages/offline_internals.html File chrome/browser/resources/offline_pages/offline_internals.html (right): https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/resources/offline_pages/offline_internals.html#newcode41 chrome/browser/resources/offline_pages/offline_internals.html:41: <div id="random-info"></div> Is it really random? :) https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/resources/offline_pages/offline_internals.js ...
4 years, 6 months ago (2016-06-03 23:12:06 UTC) #9
chili
https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/resources/offline_pages/offline_internals.html File chrome/browser/resources/offline_pages/offline_internals.html (right): https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/resources/offline_pages/offline_internals.html#newcode41 chrome/browser/resources/offline_pages/offline_internals.html:41: <div id="random-info"></div> On 2016/06/03 23:12:05, dewittj wrote: > Is ...
4 years, 6 months ago (2016-06-09 22:29:17 UTC) #12
dewittj
I don't see the new patchset, is it uploaded?
4 years, 6 months ago (2016-06-09 22:37:05 UTC) #13
chili
On 2016/06/09 22:37:05, dewittj wrote: > I don't see the new patchset, is it uploaded? ...
4 years, 6 months ago (2016-06-09 23:06:24 UTC) #14
Dan Beam
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode15 chrome/browser/resources/offline_pages/offline_internals.js:15: * }} indent off by 1 \s https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: ...
4 years, 6 months ago (2016-06-09 23:35:02 UTC) #15
dpapad
https://codereview.chromium.org/2038963002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js#newcode42 chrome/browser/resources/offline_pages/offline_internals.js:42: * @param {!Array<OfflinePageItem>} data An array object representing Can ...
4 years, 6 months ago (2016-06-09 23:36:30 UTC) #16
dewittj
https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/ui/webui/offline_internals_ui.cc File chrome/browser/ui/webui/offline_internals_ui.cc (right): https://codereview.chromium.org/2038963002/diff/40001/chrome/browser/ui/webui/offline_internals_ui.cc#newcode67 chrome/browser/ui/webui/offline_internals_ui.cc:67: std::string GetStringFromDeletePageResult( On 2016/06/09 22:29:16, chili wrote: > On ...
4 years, 6 months ago (2016-06-09 23:41:26 UTC) #17
Dan Beam
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {Array<OfflinePageItem>} */ On 2016/06/09 23:41:25, dewittj wrote: ...
4 years, 6 months ago (2016-06-09 23:50:01 UTC) #18
dewittj
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {Array<OfflinePageItem>} */ On 2016/06/09 23:50:01, Dan Beam ...
4 years, 6 months ago (2016-06-10 00:13:49 UTC) #19
Dan Beam
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {Array<OfflinePageItem>} */ On 2016/06/10 00:13:49, dewittj wrote: ...
4 years, 6 months ago (2016-06-10 00:28:17 UTC) #20
dpapad
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {Array<OfflinePageItem>} */ FYI, it seems that non-nullable ...
4 years, 6 months ago (2016-06-10 00:47:05 UTC) #21
chili
The addition to the closure compiler's gyp triggers a presubmit warning that I need to ...
4 years, 6 months ago (2016-06-10 01:04:53 UTC) #22
dpapad
Will take a closer final look tomorrow morning. https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/ui/webui/offline_internals_ui.cc File chrome/browser/ui/webui/offline_internals_ui.cc (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/ui/webui/offline_internals_ui.cc#newcode112 chrome/browser/ui/webui/offline_internals_ui.cc:112: const ...
4 years, 6 months ago (2016-06-10 01:25:09 UTC) #23
chili
On 2016/06/10 01:25:09, dpapad wrote: > Will take a closer final look tomorrow morning. > ...
4 years, 6 months ago (2016-06-10 18:08:12 UTC) #24
dewittj
https://codereview.chromium.org/2038963002/diff/100001/chrome/browser/ui/webui/offline_internals_ui.cc File chrome/browser/ui/webui/offline_internals_ui.cc (right): https://codereview.chromium.org/2038963002/diff/100001/chrome/browser/ui/webui/offline_internals_ui.cc#newcode106 chrome/browser/ui/webui/offline_internals_ui.cc:106: return "Moooooooo"; Probably should also NOTREACHED() in this branch ...
4 years, 6 months ago (2016-06-10 18:14:33 UTC) #25
dpapad
> Dan suggested in a previous CL that I should use Get(Value**)... I'll wait for ...
4 years, 6 months ago (2016-06-10 18:23:24 UTC) #26
chili
On 2016/06/10 18:23:24, dpapad wrote: > > Dan suggested in a previous CL that I ...
4 years, 6 months ago (2016-06-10 20:07:44 UTC) #27
chili
I think I replied to all the comments... Thanks! https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: ...
4 years, 6 months ago (2016-06-10 20:21:03 UTC) #28
dpapad
LGTM with a comment on my part. I suggest still waiting on dbeam's approval, since ...
4 years, 6 months ago (2016-06-10 21:08:55 UTC) #29
chili
On 2016/06/10 21:08:55, dpapad wrote: > LGTM with a comment on my part. I suggest ...
4 years, 6 months ago (2016-06-11 00:21:03 UTC) #30
dpapad
> When updating or adding third party code the appropriate 'README.chromium' file should also be ...
4 years, 6 months ago (2016-06-11 00:25:42 UTC) #31
Dan Beam
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode184 chrome/browser/resources/offline_pages/offline_internals.js:184: } On 2016/06/10 01:04:51, chili wrote: > On 2016/06/09 ...
4 years, 6 months ago (2016-06-13 19:13:30 UTC) #32
chili
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode184 chrome/browser/resources/offline_pages/offline_internals.js:184: } On 2016/06/13 19:13:28, Dan Beam wrote: > On ...
4 years, 6 months ago (2016-06-13 20:47:15 UTC) #33
Dan Beam
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode184 chrome/browser/resources/offline_pages/offline_internals.js:184: } On 2016/06/13 20:47:14, chili wrote: > On 2016/06/13 ...
4 years, 6 months ago (2016-06-13 21:13:23 UTC) #34
chili
https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/80001/chrome/browser/resources/offline_pages/offline_internals.js#newcode184 chrome/browser/resources/offline_pages/offline_internals.js:184: } On 2016/06/13 21:13:23, Dan Beam wrote: > On ...
4 years, 6 months ago (2016-06-13 23:39:18 UTC) #35
Dan Beam
could we just use JSON instead? is that possible? the code would be JSON.stringify(), that's ...
4 years, 6 months ago (2016-06-14 00:07:50 UTC) #36
chili
As mentioned in offline discussion, changed to JSON download for now and switch to CSV ...
4 years, 6 months ago (2016-06-14 04:45:21 UTC) #37
Dan Beam
looking better! https://codereview.chromium.org/2038963002/diff/160001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/160001/chrome/browser/resources/offline_pages/offline_internals.js#newcode138 chrome/browser/resources/offline_pages/offline_internals.js:138: return '"' + strObj.replace(/"/g, '""') + '"'; ...
4 years, 6 months ago (2016-06-14 15:43:37 UTC) #38
chili
https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {?Array<OfflinePage>} */ On 2016/06/14 15:43:37, Dan Beam ...
4 years, 6 months ago (2016-06-14 17:25:44 UTC) #39
dewittj
https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js#newcode150 chrome/browser/resources/offline_pages/offline_internals.js:150: var uriContent = 'data:text/json,' + encodeURIComponent(json); On 2016/06/14 17:25:43, ...
4 years, 6 months ago (2016-06-14 17:32:54 UTC) #40
Dan Beam
https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js#newcode34 chrome/browser/resources/offline_pages/offline_internals.js:34: /** @type {?Array<OfflinePage>} */ On 2016/06/14 17:25:43, chili wrote: ...
4 years, 6 months ago (2016-06-14 17:53:23 UTC) #41
Dan Beam
lgtm https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js#newcode148 chrome/browser/resources/offline_pages/offline_internals.js:148: savePageRequests: savePageRequests}); fyi, both object and array literals ...
4 years, 6 months ago (2016-06-14 17:56:20 UTC) #42
Dan Beam
https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js#newcode148 chrome/browser/resources/offline_pages/offline_internals.js:148: savePageRequests: savePageRequests}); On 2016/06/14 17:56:20, Dan Beam wrote: > ...
4 years, 6 months ago (2016-06-14 17:56:40 UTC) #43
dpapad
https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/220001/chrome/browser/resources/offline_pages/offline_internals.js#newcode146 chrome/browser/resources/offline_pages/offline_internals.js:146: var json = JSON.stringify({ FYI, if you want the ...
4 years, 6 months ago (2016-06-14 17:59:47 UTC) #44
chili
https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2038963002/diff/180001/chrome/browser/resources/offline_pages/offline_internals.js#newcode150 chrome/browser/resources/offline_pages/offline_internals.js:150: var uriContent = 'data:text/json,' + encodeURIComponent(json); On 2016/06/14 17:32:54, ...
4 years, 6 months ago (2016-06-14 21:42:12 UTC) #45
dewittj
lgtm
4 years, 6 months ago (2016-06-14 21:43:51 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038963002/240001
4 years, 6 months ago (2016-06-14 21:50:02 UTC) #49
Dan Beam
fyi: <a href="" download></a> might be the best choice for "how does one force download ...
4 years, 6 months ago (2016-06-14 22:09:35 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios-device-gn on ...
4 years, 6 months ago (2016-06-14 23:51:28 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038963002/240001
4 years, 6 months ago (2016-06-15 00:12:41 UTC) #54
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-15 01:57:15 UTC) #56
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 01:59:24 UTC) #58
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/27d6f0a481a7f73b7dd60f894000c8d22f735332
Cr-Commit-Position: refs/heads/master@{#399818}

Powered by Google App Engine
This is Rietveld 408576698