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

Issue 221933013: Show a notification when an ephemeral app consumes excessive disk space (Closed)

Created:
6 years, 8 months ago by tmdiep
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@webkit_storage_monitor
Visibility:
Public.

Description

Show a notification when an ephemeral app consumes excessive disk space This patch introduces monitoring of the storage usage of extensions and apps that are granted unlimited storage. A notification is shown when persistent storage usage exceeds a threshold. Monitoring is implemented for all extensions and apps, but initially only enabled for ephemeral apps. Ephemeral apps have a lower threshold. BUG=347801 TEST=browser_tests (ExtensionStorageMonitor.*) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262692

Patch Set 1 #

Patch Set 2 : Self nits #

Patch Set 3 : Fix unit tests #

Total comments: 17

Patch Set 4 : Addressed review comments #

Total comments: 13

Patch Set 5 : Addressed review comments #6 #

Patch Set 6 : Rebase #

Patch Set 7 : Fix test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1101 lines, -13 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_context_keyed_service_factories.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_storage_monitor.h View 1 2 3 4 5 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_storage_monitor.cc View 1 2 3 4 5 6 1 chunk +453 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_storage_monitor_browsertest.cc View 1 2 3 1 chunk +204 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_storage_monitor_factory.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_storage_monitor_factory.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/storage_monitor/write_data/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/storage_monitor/write_data/index.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/storage_monitor/write_data/index.js View 1 chunk +74 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/storage_monitor/write_data/manifest.json View 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/extension_prefs.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 5 3 chunks +77 lines, -12 lines 0 comments Download
M ui/message_center/notification_delegate.h View 1 chunk +26 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.cc View 1 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
tmdiep
This patch is dependent upon this patch, which introduces storage monitoring in webkit: https://codereview.chromium.org/218793002 I've ...
6 years, 8 months ago (2014-04-03 02:40:56 UTC) #1
benwells
sending to koz as I don't have the bandwidth right now.
6 years, 8 months ago (2014-04-04 03:40:53 UTC) #2
koz (OOO until 15th September)
https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc File chrome/browser/extensions/extension_storage_monitor.cc (right): https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc#newcode105 chrome/browser/extensions/extension_storage_monitor.cc:105: origin_state_map_.erase(it++); Can it++ not go in the for-part? https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc#newcode139 ...
6 years, 8 months ago (2014-04-07 05:24:32 UTC) #3
tmdiep
https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc File chrome/browser/extensions/extension_storage_monitor.cc (right): https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc#newcode105 chrome/browser/extensions/extension_storage_monitor.cc:105: origin_state_map_.erase(it++); On 2014/04/07 05:24:32, koz wrote: > Can it++ ...
6 years, 8 months ago (2014-04-07 08:45:00 UTC) #4
koz (OOO until 15th September)
lgtm! https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc File chrome/browser/extensions/extension_storage_monitor.cc (right): https://codereview.chromium.org/221933013/diff/40001/chrome/browser/extensions/extension_storage_monitor.cc#newcode105 chrome/browser/extensions/extension_storage_monitor.cc:105: origin_state_map_.erase(it++); On 2014/04/07 08:45:01, tmdiep wrote: > On ...
6 years, 8 months ago (2014-04-08 00:25:59 UTC) #5
dewittj
Added some comments on notifications usage. On a less code-oriented note, I'm concerned that the ...
6 years, 8 months ago (2014-04-08 01:08:02 UTC) #6
tmdiep
The notification in this patch is not very useful, as you noted. As stated in ...
6 years, 8 months ago (2014-04-08 02:28:01 UTC) #7
dewittj
notifications changes/usage lgtm. Thanks for the info on the ux discussions. https://codereview.chromium.org/221933013/diff/80001/chrome/browser/extensions/extension_storage_monitor.cc File chrome/browser/extensions/extension_storage_monitor.cc (right): ...
6 years, 8 months ago (2014-04-08 16:52:28 UTC) #8
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-08 23:27:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-08 23:29:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 00:34:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 00:58:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 01:09:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 01:29:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 01:40:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 01:50:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 02:00:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/100001
6 years, 8 months ago (2014-04-09 02:18:25 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 03:09:43 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 8 months ago (2014-04-09 03:09:44 UTC) #20
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-09 10:50:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/140001
6 years, 8 months ago (2014-04-09 10:50:16 UTC) #22
tmdiep
The CQ bit was unchecked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-09 10:53:30 UTC) #23
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-09 11:01:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/140001
6 years, 8 months ago (2014-04-09 11:01:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/140001
6 years, 8 months ago (2014-04-09 11:18:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/221933013/140001
6 years, 8 months ago (2014-04-09 11:28:57 UTC) #27
commit-bot: I haz the power
6 years, 8 months ago (2014-04-09 14:10:19 UTC) #28
Message was sent while issue was closed.
Change committed as 262692

Powered by Google App Engine
This is Rietveld 408576698