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 2451603002: Add a method to remount all removable devices in DiskMountManager. (Closed)

Created:
4 years, 1 month ago by yamaguchi
Modified:
4 years, 1 month ago
Reviewers:
hashimoto, satorux1
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add methods to remount removable devices in DiskMountManager. The methods will be invoked from VolumeManager to flip the read-only mount option upon ExternalStorageReadOnly policy update. Also allow to flip the read-only status of a Disk object from read-only to read-write, because it can happen when remounting a disk. BUG=642247 TEST=chromeos_unittests --gtest_filter=DiskMountManagerTest.* Committed: https://crrev.com/de59ed6bed57372a9c00a7c65554abd47471f225 Cr-Commit-Position: refs/heads/master@{#430564}

Patch Set 1 #

Patch Set 2 : Do not pass mount path as mount_label because it causes test failure on some platforms. #

Total comments: 22

Patch Set 3 : Do not lookup dict of disks multiple times. #

Patch Set 4 : Add function comment. #

Patch Set 5 : Update comment. #

Total comments: 8

Patch Set 6 : Update write_diabled_by_policy field whenever mount is succeded or device is fake mounted. #

Patch Set 7 : Fix comment. #

Total comments: 6

Patch Set 8 : Add is_mounted() method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -12 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/device_event_router.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h View 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chromeos/disks/disk_mount_manager.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chromeos/disks/disk_mount_manager.cc View 1 2 3 4 5 6 7 3 chunks +56 lines, -9 lines 0 comments Download
M chromeos/disks/disk_mount_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +42 lines, -2 lines 0 comments Download
M chromeos/disks/mock_disk_mount_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/disks/mock_disk_mount_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
yamaguchi
ptal
4 years, 1 month ago (2016-10-25 09:04:15 UTC) #12
hashimoto
https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc#newcode117 chromeos/disks/disk_mount_manager.cc:117: for (auto it = disks_.begin(); it != disks_.end(); ++it) ...
4 years, 1 month ago (2016-10-26 06:05:12 UTC) #15
yamaguchi
https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc#newcode117 chromeos/disks/disk_mount_manager.cc:117: for (auto it = disks_.begin(); it != disks_.end(); ++it) ...
4 years, 1 month ago (2016-10-27 06:34:55 UTC) #17
hashimoto
https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc#newcode147 chromeos/disks/disk_mount_manager.cc:147: access_modes_[source_path] = access_mode; On 2016/10/27 06:34:55, yamaguchi wrote: > ...
4 years, 1 month ago (2016-10-27 08:31:52 UTC) #18
yamaguchi
https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc#newcode147 chromeos/disks/disk_mount_manager.cc:147: access_modes_[source_path] = access_mode; On 2016/10/27 08:31:52, hashimoto wrote: > ...
4 years, 1 month ago (2016-10-27 09:52:41 UTC) #19
hashimoto
lgtm https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc#newcode147 chromeos/disks/disk_mount_manager.cc:147: access_modes_[source_path] = access_mode; On 2016/10/27 09:52:40, yamaguchi wrote: ...
4 years, 1 month ago (2016-10-28 08:55:37 UTC) #20
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/2451603002/120001
4 years, 1 month ago (2016-10-28 10:51:23 UTC) #22
yamaguchi
On 2016/10/28 08:55:37, hashimoto wrote: > lgtm > > https://codereview.chromium.org/2451603002/diff/20001/chromeos/disks/disk_mount_manager.cc > File chromeos/disks/disk_mount_manager.cc (right): > ...
4 years, 1 month ago (2016-10-28 11:02:05 UTC) #24
yamaguchi
+satorux for files under chromeos/disks.
4 years, 1 month ago (2016-10-28 11:03:03 UTC) #26
satorux1
https://codereview.chromium.org/2451603002/diff/120001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/120001/chromeos/disks/disk_mount_manager.cc#newcode116 chromeos/disks/disk_mount_manager.cc:116: // TODO(yamaguchi): Retry for tentative remount failures. file a ...
4 years, 1 month ago (2016-10-31 05:36:00 UTC) #27
yamaguchi
https://codereview.chromium.org/2451603002/diff/120001/chromeos/disks/disk_mount_manager.cc File chromeos/disks/disk_mount_manager.cc (right): https://codereview.chromium.org/2451603002/diff/120001/chromeos/disks/disk_mount_manager.cc#newcode116 chromeos/disks/disk_mount_manager.cc:116: // TODO(yamaguchi): Retry for tentative remount failures. On 2016/10/31 ...
4 years, 1 month ago (2016-11-02 07:29:51 UTC) #28
satorux1
chromeos/disks lgtm
4 years, 1 month ago (2016-11-08 07:56:26 UTC) #29
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/2451603002/140001
4 years, 1 month ago (2016-11-08 09:32:49 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-08 10:07:39 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 10:16:47 UTC) #36
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/de59ed6bed57372a9c00a7c65554abd47471f225
Cr-Commit-Position: refs/heads/master@{#430564}

Powered by Google App Engine
This is Rietveld 408576698