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

Issue 2082363004: Show notifications on low disk space. (Closed)

Created:
4 years, 6 months ago by dspaid
Modified:
4 years, 5 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@low-disk-strings
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show notifications on low disk space. The notifications are shown at most once per hour, or whenever the severity of the notification changes. BUG=622590 TEST=./out/Release/unit_tests --gtest_filter=LowDiskNotificationTest.* Committed: https://crrev.com/0d43514effc1b793aef2794815bc6f5b5e2811db Cr-Commit-Position: refs/heads/master@{#403342}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Show notifications on low disk space. #

Total comments: 18

Patch Set 3 : Split out dbus changes, address comments #

Patch Set 4 : Modified throttling to limit MEDIUM notifications to once per session #

Total comments: 2

Patch Set 5 : Set up default message_center instance for testing #

Patch Set 6 : Switch to thread checker instead of checking for UI thread explicitly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -0 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ui/low_disk_notification.h View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ui/low_disk_notification.cc View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ui/low_disk_notification_unittest.cc View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A ui/chromeos/resources/default_100_percent/filesystem/button_storage_manager.png View 1 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/filesystem/notification_disk_space_critical.png View 1 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/filesystem/notification_disk_space_low.png View Binary file 0 comments Download
A + ui/chromeos/resources/default_200_percent/filesystem/button_storage_manager.png View 1 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/filesystem/notification_disk_space_critical.png View 1 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/filesystem/notification_disk_space_low.png View Binary file 0 comments Download
M ui/chromeos/resources/ui_chromeos_resources.grd View 1 1 chunk +5 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (10 generated)
yoshiki
Thank you for doing this! The direction is good for me. I added some tiny ...
4 years, 6 months ago (2016-06-23 08:00:45 UTC) #2
dspaid
https://codereview.chromium.org/2082363004/diff/1/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2082363004/diff/1/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode686 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:686: new LowDiskNotification(DBusThreadManager::Get()->GetCryptohomeClient())); On 2016/06/23 08:00:45, yoshiki wrote: > Please ...
4 years, 5 months ago (2016-06-27 05:40:05 UTC) #3
dspaid
4 years, 5 months ago (2016-06-27 07:28:31 UTC) #5
satorux1
The patch is relatively big. How about splitting the d-bus stuff into a separate patch? ...
4 years, 5 months ago (2016-06-27 07:46:40 UTC) #6
satorux1
The patch is relatively big. How about splitting the d-bus stuff into a separate patch?
4 years, 5 months ago (2016-06-27 07:46:46 UTC) #7
yoshiki
https://codereview.chromium.org/2082363004/diff/20001/chrome/browser/chromeos/ui/low_disk_notification.cc File chrome/browser/chromeos/ui/low_disk_notification.cc (right): https://codereview.chromium.org/2082363004/diff/20001/chrome/browser/chromeos/ui/low_disk_notification.cc#newcode47 chrome/browser/chromeos/ui/low_disk_notification.cc:47: ~LowDiskNotificationDelegate() override {} nit: please add DISALLOW_COPY_AND_ASSIGN(LowDiskNotificationDelegate); https://codereview.chromium.org/2082363004/diff/20001/chrome/browser/chromeos/ui/low_disk_notification.cc#newcode69 chrome/browser/chromeos/ui/low_disk_notification.cc:69: ...
4 years, 5 months ago (2016-06-27 08:14:02 UTC) #8
dspaid1
dbus changes split out into https://codereview.chromium.org/2101853002#ps1 https://codereview.chromium.org/2082363004/diff/20001/chrome/browser/chromeos/ui/low_disk_notification.cc File chrome/browser/chromeos/ui/low_disk_notification.cc (right): https://codereview.chromium.org/2082363004/diff/20001/chrome/browser/chromeos/ui/low_disk_notification.cc#newcode27 chrome/browser/chromeos/ui/low_disk_notification.cc:27: namespace { On ...
4 years, 5 months ago (2016-06-28 00:39:06 UTC) #10
yoshiki
Thanks, lgtm
4 years, 5 months ago (2016-06-28 02:05:53 UTC) #12
dspaid
PTAL The spec has been updated to only show MEDIUM severity notifications once per session ...
4 years, 5 months ago (2016-06-28 04:16:15 UTC) #13
satorux1
lgtm
4 years, 5 months ago (2016-06-28 04:16:53 UTC) #14
dspaid
+oshima for ui/chromeos/ changes.
4 years, 5 months ago (2016-06-28 04:27:41 UTC) #16
satorux1
oops. my lgtm was for another patch...
4 years, 5 months ago (2016-06-28 04:42:34 UTC) #17
satorux1
lgtm with a request. https://codereview.chromium.org/2082363004/diff/60001/chrome/browser/chromeos/ui/low_disk_notification.h File chrome/browser/chromeos/ui/low_disk_notification.h (right): https://codereview.chromium.org/2082363004/diff/60001/chrome/browser/chromeos/ui/low_disk_notification.h#newcode46 chrome/browser/chromeos/ui/low_disk_notification.h:46: Severity severity); nit: adds a ...
4 years, 5 months ago (2016-06-28 05:53:27 UTC) #18
satorux1
Maybe src/third_party/cros_system_api needs to be updated? ../../chromeos/dbus/cryptohome_client.cc:937:41: error: no member named 'kSignalLowDiskSpace' in namespace 'cryptohome' ...
4 years, 5 months ago (2016-06-28 05:56:42 UTC) #19
dspaid
system_api changes pending cq at https://chromium-review.googlesource.com/#/c/356223/1 https://codereview.chromium.org/2082363004/diff/60001/chrome/browser/chromeos/ui/low_disk_notification.h File chrome/browser/chromeos/ui/low_disk_notification.h (right): https://codereview.chromium.org/2082363004/diff/60001/chrome/browser/chromeos/ui/low_disk_notification.h#newcode46 chrome/browser/chromeos/ui/low_disk_notification.h:46: Severity severity); On ...
4 years, 5 months ago (2016-06-28 06:29:53 UTC) #20
oshima
can you look into build failures?
4 years, 5 months ago (2016-06-29 15:26:26 UTC) #21
dspaid
On 2016/06/29 15:26:26, oshima wrote: > can you look into build failures? They're because the ...
4 years, 5 months ago (2016-06-29 20:59:16 UTC) #22
satorux1
Did you update src/DEPS for src/third_party/cros_system_api?
4 years, 5 months ago (2016-06-29 21:00:58 UTC) #23
dspaid
On 2016/06/29 21:00:58, satorux1 wrote: > Did you update src/DEPS for src/third_party/cros_system_api? Thanks, didn't know ...
4 years, 5 months ago (2016-06-29 22:44:47 UTC) #24
dspaid1
Tests should be passing now (with the exception of a flaky chromevox test that has ...
4 years, 5 months ago (2016-06-30 04:34:19 UTC) #25
dspaid
On 2016/06/30 04:34:19, dspaid1 wrote: > Tests should be passing now (with the exception of ...
4 years, 5 months ago (2016-06-30 05:59:50 UTC) #26
dspaid
On 2016/06/30 05:59:50, dspaid wrote: > On 2016/06/30 04:34:19, dspaid1 wrote: > > Tests should ...
4 years, 5 months ago (2016-06-30 07:30:01 UTC) #27
oshima
Note that we're migrating vector icons, except for multi colored one. Looks like they're multi ...
4 years, 5 months ago (2016-06-30 12:43:02 UTC) #28
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/2082363004/100001
4 years, 5 months ago (2016-06-30 23:34:05 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-30 23:39:39 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 23:40:07 UTC) #34
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0d43514effc1b793aef2794815bc6f5b5e2811db Cr-Commit-Position: refs/heads/master@{#403342}
4 years, 5 months ago (2016-06-30 23:42:25 UTC) #36
James Cook
4 years, 5 months ago (2016-07-01 04:29:34 UTC) #37
Message was sent while issue was closed.
On 2016/06/30 23:42:25, commit-bot: I haz the power wrote:
> Patchset 6 (id:??) landed as
> https://crrev.com/0d43514effc1b793aef2794815bc6f5b5e2811db
> Cr-Commit-Position: refs/heads/master@{#403342}

Appears to have an uninitialized memory read. See
https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20ChromeOS%20...

Not reverting yet - can you take a look?

Powered by Google App Engine
This is Rietveld 408576698