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

Issue 1607483005: Show data usage on Site Details (MDSettings) (Closed)

Created:
4 years, 11 months ago by Finnur
Modified:
4 years, 10 months ago
CC:
chromium-reviews, msramek+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, raymes+watch_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, markusheintz_, dbeam+watch-closure_chromium.org, msramek
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show data usage (storage) on Site Details (MDSettings). Also create a basic abstraction layer for SiteSettings to use when communicating with the C++ layer. BUG=543635 Committed: https://crrev.com/a7fe8e8f31f284d05056d54cb7e88b050c9513f6 Cr-Commit-Position: refs/heads/master@{#372102}

Patch Set 1 : #

Total comments: 34

Patch Set 2 : Address feedback #

Patch Set 3 : Test (WIP) #

Total comments: 2

Patch Set 4 : Augment test #

Total comments: 19

Patch Set 5 : Address feedback #

Total comments: 6

Patch Set 6 : Address feedback and add owner #

Total comments: 16

Patch Set 7 : Address feedback #

Patch Set 8 : Fix update problem #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -23 lines) Patch
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 7 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/compiled_resources.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_details.html View 1 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_details.js View 1 2 3 4 5 6 2 chunks +17 lines, -7 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/website_usage_private_api.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/site_settings/website_usage_private_api.js View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/storage/OWNERS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/storage/storage_info_fetcher.h View 1 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/storage/storage_info_fetcher.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/settings/site_settings_handler.h View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/settings/site_settings_handler.cc View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/site_details_tests.js View 1 2 3 4 5 3 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 43 (21 generated)
Finnur
PTAL. https://codereview.chromium.org/1607483005/diff/40001/chrome/browser/content_settings/storage_info_fetcher.h File chrome/browser/content_settings/storage_info_fetcher.h (right): https://codereview.chromium.org/1607483005/diff/40001/chrome/browser/content_settings/storage_info_fetcher.h#newcode11 chrome/browser/content_settings/storage_info_fetcher.h:11: class StorageInfoFetcher : This class is really a ...
4 years, 11 months ago (2016-01-19 17:08:58 UTC) #5
michaelpg
I've added stevenjb for his thoughts on the JS "API" for site settings, he's done ...
4 years, 11 months ago (2016-01-19 20:47:54 UTC) #8
raymes
Small drive-by comment :) You may also want to update the CL description to specifically ...
4 years, 11 months ago (2016-01-20 02:51:42 UTC) #10
Finnur
All addressed, I believe. PTAL. https://codereview.chromium.org/1607483005/diff/40001/chrome/browser/content_settings/storage_info_fetcher.cc File chrome/browser/content_settings/storage_info_fetcher.cc (right): https://codereview.chromium.org/1607483005/diff/40001/chrome/browser/content_settings/storage_info_fetcher.cc#newcode17 chrome/browser/content_settings/storage_info_fetcher.cc:17: AddRef(); // Balanced in ...
4 years, 11 months ago (2016-01-22 15:07:36 UTC) #13
Finnur
CL 3 is for a test I was experimenting with. https://codereview.chromium.org/1607483005/diff/100001/chrome/test/data/webui/settings/site_details_tests.js File chrome/test/data/webui/settings/site_details_tests.js (right): https://codereview.chromium.org/1607483005/diff/100001/chrome/test/data/webui/settings/site_details_tests.js#newcode11 ...
4 years, 11 months ago (2016-01-22 15:52:16 UTC) #14
Finnur
> CL 3 is for a test I was experimenting with. Patchset 3, I mean.
4 years, 11 months ago (2016-01-22 15:52:34 UTC) #15
Finnur
+David for OWNERS approval for two files added in: chrome/browser/storage/ I added them there because ...
4 years, 11 months ago (2016-01-25 11:19:17 UTC) #17
Finnur
Also (forgot to mention): Michael, PTAL. :)
4 years, 11 months ago (2016-01-25 11:19:50 UTC) #18
dgrogan
rs lgtm for chrome/browser/storage owner Want to add yourself as an OWNER? Then that directory ...
4 years, 11 months ago (2016-01-25 17:51:23 UTC) #19
michaelpg
just looked at web-side stuff for now https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html File chrome/browser/resources/settings/site_settings/site_details.html (right): https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html#newcode53 chrome/browser/resources/settings/site_settings/site_details.html:53: <website-usage-private-api id="usageApi" ...
4 years, 11 months ago (2016-01-25 18:33:54 UTC) #20
Finnur
PTAL https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html File chrome/browser/resources/settings/site_settings/site_details.html (right): https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html#newcode53 chrome/browser/resources/settings/site_settings/site_details.html:53: <website-usage-private-api id="usageApi" This seems to me like a ...
4 years, 11 months ago (2016-01-26 15:54:54 UTC) #21
michaelpg
https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html File chrome/browser/resources/settings/site_settings/site_details.html (right): https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html#newcode53 chrome/browser/resources/settings/site_settings/site_details.html:53: <website-usage-private-api id="usageApi" On 2016/01/26 15:54:53, Finnur wrote: > This ...
4 years, 11 months ago (2016-01-27 06:37:47 UTC) #22
Finnur
All addressed. Michael, PTAL. https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html File chrome/browser/resources/settings/site_settings/site_details.html (right): https://codereview.chromium.org/1607483005/diff/120001/chrome/browser/resources/settings/site_settings/site_details.html#newcode53 chrome/browser/resources/settings/site_settings/site_details.html:53: <website-usage-private-api id="usageApi" OK, I'll bring ...
4 years, 11 months ago (2016-01-27 10:27:26 UTC) #24
michaelpg
mostly lgtm https://codereview.chromium.org/1607483005/diff/180001/chrome/browser/resources/settings/site_settings/site_details.js File chrome/browser/resources/settings/site_settings/site_details.js (right): https://codereview.chromium.org/1607483005/diff/180001/chrome/browser/resources/settings/site_settings/site_details.js#newcode64 chrome/browser/resources/settings/site_settings/site_details.js:64: this.$.usageApi.fetchUsageTotal(url.host.split(':')[0]); Looks like this is equivalent to ...
4 years, 11 months ago (2016-01-27 18:42:48 UTC) #25
Finnur
All done. Checking in. https://codereview.chromium.org/1607483005/diff/180001/chrome/browser/resources/settings/site_settings/site_details.js File chrome/browser/resources/settings/site_settings/site_details.js (right): https://codereview.chromium.org/1607483005/diff/180001/chrome/browser/resources/settings/site_settings/site_details.js#newcode64 chrome/browser/resources/settings/site_settings/site_details.js:64: this.$.usageApi.fetchUsageTotal(url.host.split(':')[0]); On 2016/01/27 18:42:47, michaelpg ...
4 years, 10 months ago (2016-01-28 11:17:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607483005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607483005/200001
4 years, 10 months ago (2016-01-28 11:18:37 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/123094) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 10 months ago (2016-01-28 11:20:30 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607483005/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607483005/240001
4 years, 10 months ago (2016-01-28 11:49:13 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/172749)
4 years, 10 months ago (2016-01-28 14:25:14 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607483005/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607483005/240001
4 years, 10 months ago (2016-01-28 14:26:29 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 10 months ago (2016-01-28 16:38:15 UTC) #41
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 16:39:35 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a7fe8e8f31f284d05056d54cb7e88b050c9513f6
Cr-Commit-Position: refs/heads/master@{#372102}

Powered by Google App Engine
This is Rietveld 408576698