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

Issue 2078153002: Storage manager: Add conditional messages for disk low situation and update design. (Closed)

Created:
4 years, 6 months ago by fukino
Modified:
4 years, 6 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Storage manager: Add conditional messages for disk low situation and update design. This CL does: - Show warning messages when disk space is low. 1) If the space is below 1GB, show a warning message. 2) If the space is below 512MB, show a scary warning message. - Show a bar indicating how much space is used. The bar color is changed when space < 1GB and space < 512MB. - Update layout and strings to match the latest spec. BUG=591958 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/c20fd8c81e0174fca68bcdf8db4da70342daf3b0 Cr-Commit-Position: refs/heads/master@{#401199}

Patch Set 1 #

Patch Set 2 : Load roboto.css if chromeos #

Total comments: 13

Patch Set 3 : Address review comments and rebase. #

Total comments: 2

Patch Set 4 : Use svg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -49 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 chunks +21 lines, -3 lines 0 comments Download
A + chrome/browser/resources/options/chromeos/space_critically_low.svg View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/resources/options/chromeos/space_low.svg View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/chromeos/storage_manager.css View 1 2 3 2 chunks +66 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/chromeos/storage_manager.html View 1 2 3 1 chunk +62 lines, -36 lines 0 comments Download
M chrome/browser/resources/options/chromeos/storage_manager.js View 1 2 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc View 1 2 3 3 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
fukino
Dan, could you take a look? https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/options.html File chrome/browser/resources/options/options.html (right): https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/options.html#newcode54 chrome/browser/resources/options/options.html:54: <link rel="stylesheet" href="chrome://resources/css/roboto.css"> ...
4 years, 6 months ago (2016-06-20 17:03:12 UTC) #4
Dan Beam
https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/chromeos/storage_manager.html File chrome/browser/resources/options/chromeos/storage_manager.html (right): https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/chromeos/storage_manager.html#newcode32 chrome/browser/resources/options/chromeos/storage_manager.html:32: <div id="storage-bar-progress"></div> why not use a <progress> element? https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/options.html ...
4 years, 6 months ago (2016-06-21 01:39:56 UTC) #5
fukino
Thank you for the review! Please take another look. https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/chromeos/storage_manager.html File chrome/browser/resources/options/chromeos/storage_manager.html (right): https://codereview.chromium.org/2078153002/diff/20001/chrome/browser/resources/options/chromeos/storage_manager.html#newcode32 chrome/browser/resources/options/chromeos/storage_manager.html:32: ...
4 years, 6 months ago (2016-06-21 22:21:50 UTC) #6
Dan Beam
can you use .svgs instead of .pngs? see: ui/webui/resources/images/warning.svg (copy and just change the fill ...
4 years, 6 months ago (2016-06-22 00:11:27 UTC) #7
Dan Beam
if you use svg you can probably just change the HTML to <img src="a-file-in-the-same-dir.svg"> and ...
4 years, 6 months ago (2016-06-22 00:13:58 UTC) #8
fukino
Thank you! I replaced pngs with svgs, and use them in <img> tag. (they are ...
4 years, 6 months ago (2016-06-22 03:12:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078153002/60001
4 years, 6 months ago (2016-06-22 03:13:26 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-22 03:55:31 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 03:59:00 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c20fd8c81e0174fca68bcdf8db4da70342daf3b0
Cr-Commit-Position: refs/heads/master@{#401199}

Powered by Google App Engine
This is Rietveld 408576698