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

Issue 2101853002: Add signal handler for low disk notification (Closed)

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

Description

Add signal handler for low disk notification Cryptohome polls every minute for remaining disk space and emits a DBus signal if the remaining space is lower than a given threshold. This patch adds a handler that will call the specified callback when this signal is received. BUG=622590 TEST=unit tests in following CL to implement notifications Committed: https://crrev.com/43c9801f43e8feb9bd5a58436ead31deae5382c4 Cr-Commit-Position: refs/heads/master@{#403089}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove unneeded member #

Total comments: 2

Patch Set 3 : Remove obsolete mock method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
M chromeos/dbus/cryptohome_client.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/cryptohome_client.cc View 4 chunks +24 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_cryptohome_client.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (8 generated)
dspaid1
4 years, 5 months ago (2016-06-28 00:39:45 UTC) #2
satorux1
https://codereview.chromium.org/2101853002/diff/1/chromeos/dbus/fake_cryptohome_client.cc File chromeos/dbus/fake_cryptohome_client.cc (right): https://codereview.chromium.org/2101853002/diff/1/chromeos/dbus/fake_cryptohome_client.cc#newcode57 chromeos/dbus/fake_cryptohome_client.cc:57: low_disk_space_handler_ = handler; low_disk_space_handler_ is set but won't be ...
4 years, 5 months ago (2016-06-28 00:48:29 UTC) #3
dspaid
https://codereview.chromium.org/2101853002/diff/1/chromeos/dbus/fake_cryptohome_client.cc File chromeos/dbus/fake_cryptohome_client.cc (right): https://codereview.chromium.org/2101853002/diff/1/chromeos/dbus/fake_cryptohome_client.cc#newcode57 chromeos/dbus/fake_cryptohome_client.cc:57: low_disk_space_handler_ = handler; On 2016/06/28 00:48:29, satorux1 wrote: > ...
4 years, 5 months ago (2016-06-28 00:57:08 UTC) #4
satorux1
I think it might be nice to add some more info in the patch description. ...
4 years, 5 months ago (2016-06-28 01:13:34 UTC) #5
dspaid
https://codereview.chromium.org/2101853002/diff/20001/chromeos/dbus/mock_cryptohome_client.h File chromeos/dbus/mock_cryptohome_client.h (right): https://codereview.chromium.org/2101853002/diff/20001/chromeos/dbus/mock_cryptohome_client.h#newcode31 chromeos/dbus/mock_cryptohome_client.h:31: MOCK_METHOD0(ResetLowDiskSpaceHandler, void()); On 2016/06/28 01:13:34, satorux1 wrote: > please ...
4 years, 5 months ago (2016-06-28 01:44:02 UTC) #7
yoshiki
lgtm
4 years, 5 months ago (2016-06-28 04:01:19 UTC) #8
satorux1
nit in the description: ChromeOS -> Cryptohome?
4 years, 5 months ago (2016-06-28 04:12:00 UTC) #9
dspaid
On 2016/06/28 04:12:00, satorux1 wrote: > nit in the description: ChromeOS -> Cryptohome? Done
4 years, 5 months ago (2016-06-28 04:13:51 UTC) #11
satorux1
lgtm
4 years, 5 months ago (2016-06-28 05:45:17 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101853002/40001
4 years, 5 months ago (2016-06-30 02:17:07 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/161249)
4 years, 5 months ago (2016-06-30 02:32:23 UTC) #16
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/2101853002/40001
4 years, 5 months ago (2016-06-30 04:28:30 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-30 04:48:59 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 04:49:06 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 04:50:55 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/43c9801f43e8feb9bd5a58436ead31deae5382c4
Cr-Commit-Position: refs/heads/master@{#403089}

Powered by Google App Engine
This is Rietveld 408576698