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

Issue 2342603004: [Offline pages] Clean up unnecessary DeleteAll calls in offline internals (Closed)

Created:
4 years, 3 months ago by chili
Modified:
4 years, 3 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Clean up unnecessary DeleteAll calls in offline internals -- The DeleteAllPages method is only used by the offline internals page. -- The Javascript can send all the request ids for DeleteAllRequests to eliminate additional async callback complexity. -- Update IDs to be less confusing. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/2d109e491d8fe83601445a0d8f2e3855a74ad3d7 Cr-Commit-Position: refs/heads/master@{#418968}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update button text #

Total comments: 2

Patch Set 3 : Correct indentation #

Patch Set 4 : update id in js and remove references to deleted methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -94 lines) Patch
M chrome/browser/resources/offline_pages/offline_internals.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/offline_pages/offline_internals.js View 1 2 3 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js View 3 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 1 2 3 4 chunks +0 lines, -53 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
chili
4 years, 3 months ago (2016-09-14 18:21:53 UTC) #4
dewittj
lgtm, thanks! https://codereview.chromium.org/2342603004/diff/1/chrome/browser/resources/offline_pages/offline_internals.html File chrome/browser/resources/offline_pages/offline_internals.html (right): https://codereview.chromium.org/2342603004/diff/1/chrome/browser/resources/offline_pages/offline_internals.html#newcode43 chrome/browser/resources/offline_pages/offline_internals.html:43: <button id="delete-all-pages">Clear all</button> nit: why move to ...
4 years, 3 months ago (2016-09-14 18:39:10 UTC) #5
chili
https://codereview.chromium.org/2342603004/diff/1/chrome/browser/resources/offline_pages/offline_internals.html File chrome/browser/resources/offline_pages/offline_internals.html (right): https://codereview.chromium.org/2342603004/diff/1/chrome/browser/resources/offline_pages/offline_internals.html#newcode43 chrome/browser/resources/offline_pages/offline_internals.html:43: <button id="delete-all-pages">Clear all</button> On 2016/09/14 18:39:10, dewittj wrote: > ...
4 years, 3 months ago (2016-09-14 18:47:07 UTC) #6
dewittj
I think that for offline pages we support the 2-step delete process, which is unsupported ...
4 years, 3 months ago (2016-09-14 18:49:06 UTC) #7
chili
On 2016/09/14 18:49:06, dewittj wrote: > I think that for offline pages we support the ...
4 years, 3 months ago (2016-09-14 20:00:45 UTC) #8
Pete Williamson
lgtm. Much nicer than what we had before, thanks!
4 years, 3 months ago (2016-09-15 00:30:57 UTC) #9
chili
+bauerb for OWNER
4 years, 3 months ago (2016-09-15 00:35:55 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/2342603004/diff/20001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2342603004/diff/20001/chrome/browser/resources/offline_pages/offline_internals.js#newcode135 chrome/browser/resources/offline_pages/offline_internals.js:135: selectedIds.push(checkboxes[i].value); Indent two spaces.
4 years, 3 months ago (2016-09-15 08:36:28 UTC) #12
Bernhard Bauer
Oops, otherwise LGTM :)
4 years, 3 months ago (2016-09-15 08:48:59 UTC) #13
chili
Thanks! https://codereview.chromium.org/2342603004/diff/20001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2342603004/diff/20001/chrome/browser/resources/offline_pages/offline_internals.js#newcode135 chrome/browser/resources/offline_pages/offline_internals.js:135: selectedIds.push(checkboxes[i].value); On 2016/09/15 08:36:28, Bernhard Bauer wrote: > ...
4 years, 3 months ago (2016-09-15 18:18:26 UTC) #14
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/2342603004/60001
4 years, 3 months ago (2016-09-15 18:44:59 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compilation/builds/2720)
4 years, 3 months ago (2016-09-15 18:58:40 UTC) #19
Dan Beam
On 2016/09/15 18:58:40, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-15 20:32:45 UTC) #20
chili
On 2016/09/15 20:32:45, Dan Beam wrote: > On 2016/09/15 18:58:40, commit-bot: I haz the power ...
4 years, 3 months ago (2016-09-15 20:48:46 UTC) #22
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/2342603004/60001
4 years, 3 months ago (2016-09-15 20:48:50 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 20:56:53 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 21:00:15 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2d109e491d8fe83601445a0d8f2e3855a74ad3d7
Cr-Commit-Position: refs/heads/master@{#418968}

Powered by Google App Engine
This is Rietveld 408576698