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

Issue 2348913002: Port storage manager to MD settings. (Closed)

Created:
4 years, 3 months ago by fukino
Modified:
4 years, 2 months ago
Reviewers:
Ilya Sherman, michaelpg
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, 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

Port storage manager to MD settings. This CL adds an "Storage management" item on MD settings/Device, and it shows the size of each storage item. C++ side implementation is basically copied from old setting's one. (I don't share the implementation assuming that the old one will be removed.) Following are not implemented. - The UI design is temporary. - metrics/tests will be added separately. BUG=629438 TEST=with the flag "--enable-md-storage-manager=1", manually tested that chrome://md-settings/storage shows the same items/values with chrome://settings/storage CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/519e0e2c9424ec070416451b0254123bdc125545 Cr-Commit-Position: refs/heads/master@{#423386}

Patch Set 1 #

Patch Set 2 : (WIP) Port storage manager to MD settings. #

Patch Set 3 : Add conditional messages / Add dialog to clear Drive cache. #

Patch Set 4 : Add labels on the bar graph / Consider RTL / Rebase. #

Patch Set 5 : Add a flag to enable MD storage manager. #

Patch Set 6 : histograms.xml #

Total comments: 48

Patch Set 7 : Address review comments. #

Total comments: 12

Patch Set 8 : Address review comments 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+835 lines, -173 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/app/settings_strings.grdp View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/device_page/compiled_resources2.gyp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/device_page/device_page.html View 1 2 3 4 5 6 7 5 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/device_page/device_page.js View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/device_page/drive_cache_dialog.html View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/device_page/drive_cache_dialog.js View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/device_page/storage.html View 1 2 3 4 5 6 7 1 chunk +207 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/device_page/storage.js View 1 2 3 4 5 6 7 1 chunk +282 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/icons.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/route.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/browser/ui/webui/settings/chromeos/device_storage_handler.h View 1 2 3 4 5 6 4 chunks +17 lines, -22 lines 0 comments Download
A + chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc View 1 16 chunks +84 lines, -148 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
fukino
Dan, could you take a look?
4 years, 3 months ago (2016-09-21 08:40:14 UTC) #4
Dan Beam
can we start adding this stuff behind a flag or something? we're really trying not ...
4 years, 3 months ago (2016-09-23 06:18:21 UTC) #5
fukino
On 2016/09/23 06:18:21, Dan Beam wrote: > can we start adding this stuff behind a ...
4 years, 2 months ago (2016-09-26 16:31:03 UTC) #7
fukino
On 2016/09/26 16:31:03, fukino wrote: > On 2016/09/23 06:18:21, Dan Beam wrote: > > can ...
4 years, 2 months ago (2016-09-26 18:17:25 UTC) #8
fukino
Dan, could you take a look? I implemented the storage manager based on the latest ...
4 years, 2 months ago (2016-09-28 15:27:54 UTC) #12
Dan Beam
+michaelpg@ / stevenjb@ -- they're better CrOS reviewers
4 years, 2 months ago (2016-09-29 02:52:11 UTC) #15
michaelpg
stevenjb being OOO, I'll look over this today. You'll need an owner for metrics, too.
4 years, 2 months ago (2016-09-29 22:19:02 UTC) #18
fukino
On 2016/09/29 22:19:02, michaelpg wrote: > stevenjb being OOO, I'll look over this today. You'll ...
4 years, 2 months ago (2016-09-30 03:34:36 UTC) #19
michaelpg
https://codereview.chromium.org/2348913002/diff/100001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2348913002/diff/100001/chrome/app/settings_strings.grdp#newcode2350 chrome/app/settings_strings.grdp:2350: <message name="IDS_SETTINGS_STORAGE_ITEM_ANDROID" desc="In Device Settings > Storage, label for ...
4 years, 2 months ago (2016-10-01 01:41:05 UTC) #20
fukino
Thank you for the review! Could you take another look? https://codereview.chromium.org/2348913002/diff/100001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2348913002/diff/100001/chrome/app/settings_strings.grdp#newcode2350 ...
4 years, 2 months ago (2016-10-03 18:40:42 UTC) #22
michaelpg
https://codereview.chromium.org/2348913002/diff/100001/chrome/browser/resources/settings/device_page/storage.js File chrome/browser/resources/settings/device_page/storage.js (right): https://codereview.chromium.org/2348913002/diff/100001/chrome/browser/resources/settings/device_page/storage.js#newcode16 chrome/browser/resources/settings/device_page/storage.js:16: var StorageSpaceState = { On 2016/10/03 18:40:41, fukino wrote: ...
4 years, 2 months ago (2016-10-03 23:44:45 UTC) #23
fukino
Thank you! PTAL. https://codereview.chromium.org/2348913002/diff/100001/chrome/browser/resources/settings/device_page/storage.js File chrome/browser/resources/settings/device_page/storage.js (right): https://codereview.chromium.org/2348913002/diff/100001/chrome/browser/resources/settings/device_page/storage.js#newcode16 chrome/browser/resources/settings/device_page/storage.js:16: var StorageSpaceState = { On 2016/10/03 ...
4 years, 2 months ago (2016-10-04 09:03:54 UTC) #24
fukino
isherman@: PTAL at histograms.xml. Thanks!
4 years, 2 months ago (2016-10-04 09:04:52 UTC) #26
Ilya Sherman
histograms.xml lgtm
4 years, 2 months ago (2016-10-05 00:32:08 UTC) #27
michaelpg
lgtm
4 years, 2 months ago (2016-10-05 19:13:36 UTC) #28
fukino
Thank you!
4 years, 2 months ago (2016-10-05 22:57:46 UTC) #29
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/2348913002/160001
4 years, 2 months ago (2016-10-05 22:58:17 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 2 months ago (2016-10-06 01:44:34 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 01:47:09 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/519e0e2c9424ec070416451b0254123bdc125545
Cr-Commit-Position: refs/heads/master@{#423386}

Powered by Google App Engine
This is Rietveld 408576698