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

Issue 2136023002: arc: Abort booting ARC if the device is critically low on disk space. (Closed)

Created:
4 years, 5 months ago by Shuhei Takahashi
Modified:
4 years, 5 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hashimoto+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Abort booting ARC if the device is critically low on disk space. If the device is too low on disk space (<64MB), ARC aborts booting, and notification is shown to the user. BUG=chromium:625923 TEST=components_unittests --gtest_filter='ArcBridgeTest.*' TEST=chromeos_unittests TEST=Notification shows up on login when free disk space is 40MB. Committed: https://crrev.com/1821ddc81c38b0fbb42d9e1c0e59e42afa39b327 Cr-Commit-Position: refs/heads/master@{#406218}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Rebased. #

Total comments: 10

Patch Set 4 : Address hidehiko's comments + update mock_cryptohome_client. #

Patch Set 5 : . #

Total comments: 3

Patch Set 6 : Call SysInfo::AmountOfFreeDiskSpace() directly. #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : Style fixes as per comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -5 lines) Patch
A chrome/browser/chromeos/arc/arc_boot_error_notification.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_boot_error_notification.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_bootstrap.cc View 1 2 3 4 5 6 7 7 chunks +40 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (29 generated)
Shuhei Takahashi
hidehiko: PTAL for ARC changes dkrahn: PTAL for chromeos/dbus Note that this needs roll of ...
4 years, 5 months ago (2016-07-13 08:20:29 UTC) #4
Darren Krahn
On 2016/07/13 08:20:29, Shuhei Takahashi wrote: > hidehiko: PTAL for ARC changes > > dkrahn: ...
4 years, 5 months ago (2016-07-13 08:35:37 UTC) #5
Shuhei Takahashi
hidehiko: PTAL PS3: Rebased to ToT. Darren, thanks for quick review!
4 years, 5 months ago (2016-07-14 06:23:55 UTC) #8
hidehiko
My initial scan. The bot failure looks the real mistake. Could you take a look ...
4 years, 5 months ago (2016-07-14 07:39:40 UTC) #13
hidehiko
One more request. Could you measure the impact for the boot time?
4 years, 5 months ago (2016-07-14 07:40:37 UTC) #14
Shuhei Takahashi
msw: PTAL for mock_cryptohome_client.h (new file) hidehiko: PTAL I measured timing and, to my surprise, ...
4 years, 5 months ago (2016-07-14 08:44:27 UTC) #16
Shuhei Takahashi
dkrahn: PTAL for mock_cryptohome_client.h (new file) hidehiko: PTAL Oops, I meant dkrahn, not msw. I'm ...
4 years, 5 months ago (2016-07-14 08:45:30 UTC) #17
hidehiko
One more comment (very sorry, I overlooked it in the previous iteration...). https://codereview.chromium.org/2136023002/diff/80001/components/arc/arc_bridge_bootstrap.cc File components/arc/arc_bridge_bootstrap.cc ...
4 years, 5 months ago (2016-07-14 14:10:26 UTC) #26
Junichi Uekawa
https://codereview.chromium.org/2136023002/diff/80001/chromeos/dbus/cryptohome_client.h File chromeos/dbus/cryptohome_client.h (right): https://codereview.chromium.org/2136023002/diff/80001/chromeos/dbus/cryptohome_client.h#newcode166 chromeos/dbus/cryptohome_client.h:166: virtual void GetFreeDiskSpace(const GetFreeDiskSpaceCallback& callback) = 0; Why do ...
4 years, 5 months ago (2016-07-15 00:29:40 UTC) #28
Junichi Uekawa
4 years, 5 months ago (2016-07-15 00:29:41 UTC) #29
Junichi Uekawa
4 years, 5 months ago (2016-07-15 00:29:42 UTC) #30
Shuhei Takahashi
hidehiko: PTAL Thanks for pointing out we can check disk directly in Chrome browser process. ...
4 years, 5 months ago (2016-07-15 06:06:10 UTC) #35
Shuhei Takahashi
BTW, regarding boot time: I measured the timing between ArcBridgeBootstrapImpl::Start() and ArcBridgeBootstrapImpl::OnDiskSpaceChecked() again, and it ...
4 years, 5 months ago (2016-07-15 06:09:38 UTC) #36
Shuhei Takahashi
On 2016/07/15 06:09:38, Shuhei Takahashi wrote: > BTW, regarding boot time: I measured the timing ...
4 years, 5 months ago (2016-07-15 06:17:51 UTC) #37
hidehiko
LGTM with minor style comments. https://codereview.chromium.org/2136023002/diff/120001/components/arc/arc_bridge_bootstrap.cc File components/arc/arc_bridge_bootstrap.cc (right): https://codereview.chromium.org/2136023002/diff/120001/components/arc/arc_bridge_bootstrap.cc#newcode135 components/arc/arc_bridge_bootstrap.cc:135: static int64_t CheckDiskSpace(); Optional: ...
4 years, 5 months ago (2016-07-15 14:47:25 UTC) #40
Shuhei Takahashi
Thanks for reviewing! https://codereview.chromium.org/2136023002/diff/120001/components/arc/arc_bridge_bootstrap.cc File components/arc/arc_bridge_bootstrap.cc (right): https://codereview.chromium.org/2136023002/diff/120001/components/arc/arc_bridge_bootstrap.cc#newcode135 components/arc/arc_bridge_bootstrap.cc:135: static int64_t CheckDiskSpace(); On 2016/07/15 14:47:25, ...
4 years, 5 months ago (2016-07-19 04:38:01 UTC) #41
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/2136023002/140001
4 years, 5 months ago (2016-07-19 04:38:28 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-19 05:19:53 UTC) #46
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 05:21:16 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1821ddc81c38b0fbb42d9e1c0e59e42afa39b327
Cr-Commit-Position: refs/heads/master@{#406218}

Powered by Google App Engine
This is Rietveld 408576698