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

Issue 2663163002: MD settings: Storage: Add DELETE button for deleting Drive offline files. (Closed)

Created:
3 years, 10 months ago by fukino
Modified:
3 years, 10 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD settings: Storage: Add delete icon button for deleting Drive offline files. Right-arrow icon is not appropriate for a button to delete offline files, so it should be replaced with delete button. Deleting 0B of offline files does not make sense, so we should hide the delete button when the Drive cache size is 0B or unknown. In addition, this CL makes each row two-line to show the size as secondary text. BUG=678383 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2663163002 Cr-Commit-Position: refs/heads/master@{#450222} Committed: https://chromium.googlesource.com/chromium/src/+/7dfc69252853f9c5410584e5087958006fe89da8

Patch Set 1 #

Patch Set 2 : import paper-button as a dependency. #

Patch Set 3 : Rebase #

Patch Set 4 : Make rows two-line and use icon for deleting drive cache. #

Total comments: 7

Patch Set 5 : Use <iron-icon icon="cr:delete"> instead of copying svg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -26 lines) Patch
M chrome/browser/resources/settings/device_page/storage.html View 1 2 3 4 3 chunks +49 lines, -22 lines 0 comments Download
M chrome/browser/resources/settings/device_page/storage.js View 1 2 3 4 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
fukino
Dan, could you take a look?
3 years, 10 months ago (2017-01-31 06:19:26 UTC) #4
Dan Beam
i may not get to this soon, but I pinged bettes@ about this (because I ...
3 years, 10 months ago (2017-02-02 01:13:18 UTC) #5
fukino
On 2017/02/02 01:13:18, Dan Beam (slow) wrote: > i may not get to this soon, ...
3 years, 10 months ago (2017-02-02 06:37:06 UTC) #6
Dan Beam
On 2017/02/02 06:37:06, fukino wrote: > On 2017/02/02 01:13:18, Dan Beam (slow) wrote: > > ...
3 years, 10 months ago (2017-02-06 17:29:45 UTC) #7
fukino
Dan, could you take another look? https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html File chrome/browser/resources/settings/device_page/storage.html (right): https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html#newcode129 chrome/browser/resources/settings/device_page/storage.html:129: button[is='paper-icon-button-light'].delete { As ...
3 years, 10 months ago (2017-02-08 20:20:51 UTC) #9
fukino
Friendly ping :)
3 years, 10 months ago (2017-02-13 19:41:17 UTC) #10
Dan Beam
https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html File chrome/browser/resources/settings/device_page/storage.html (right): https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html#newcode201 chrome/browser/resources/settings/device_page/storage.html:201: hidden$="[[!driveEnabled_]]" actionable$="[[hasDriveCache_]]" > maybe worth changing from hidden$="[[!driveEnabled_]]" to ...
3 years, 10 months ago (2017-02-13 19:47:55 UTC) #11
fukino
https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html File chrome/browser/resources/settings/device_page/storage.html (right): https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html#newcode201 chrome/browser/resources/settings/device_page/storage.html:201: hidden$="[[!driveEnabled_]]" actionable$="[[hasDriveCache_]]" > On 2017/02/13 19:47:55, Dan Beam wrote: ...
3 years, 10 months ago (2017-02-13 19:50:52 UTC) #12
fukino
Could you take another look? https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html File chrome/browser/resources/settings/device_page/storage.html (right): https://codereview.chromium.org/2663163002/diff/60001/chrome/browser/resources/settings/device_page/storage.html#newcode201 chrome/browser/resources/settings/device_page/storage.html:201: hidden$="[[!driveEnabled_]]" actionable$="[[hasDriveCache_]]" > On ...
3 years, 10 months ago (2017-02-14 00:58:38 UTC) #13
Dan Beam
lgtm but you could consider writing a test for this, we have a bunch in ...
3 years, 10 months ago (2017-02-14 01:11:31 UTC) #14
fukino
On 2017/02/14 01:11:31, Dan Beam wrote: > lgtm but you could consider writing a test ...
3 years, 10 months ago (2017-02-14 01:24:54 UTC) #15
Dan Beam
On 2017/02/14 01:24:54, fukino wrote: > On 2017/02/14 01:11:31, Dan Beam wrote: > > lgtm ...
3 years, 10 months ago (2017-02-14 01:26:36 UTC) #16
fukino
On 2017/02/14 01:26:36, Dan Beam wrote: > On 2017/02/14 01:24:54, fukino wrote: > > On ...
3 years, 10 months ago (2017-02-14 01:32:22 UTC) #17
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/2663163002/80001
3 years, 10 months ago (2017-02-14 01:33:49 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 03:41:54 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7dfc69252853f9c5410584e50879...

Powered by Google App Engine
This is Rietveld 408576698