Files: Only unmount external media when enabling ExternalStorageDisabled
The policy is intended to unmount external media such as USB drives and SD cards. However, cros-disks is now used to mount other types of file systems such as DriveFS and sshfs for crostini. These don't count as "external" and are covered by other policies. Also, if an unmount fails, Chrome will keep trying to unmount the device. Fix this by generating a list of mount points and iterating through that list. BUG=947375 Change-Id: I8a0813daa863e9f88e8cb1fc07cf8b7fc157a25d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545956 Commit-Queue: Anand Mistry <amistry@chromium.org> Reviewed-by:Tatsuhisa Yamaguchi <yamaguchi@chromium.org> Reviewed-by:
Sergei Datsenko <dats@chromium.org> Cr-Commit-Position: refs/heads/master@{#647127}
Showing
Please register or sign in to comment