Collapse crostini shared paths when a parent is shared.

If 2 child dirs such as /a/a, and /a/b, are shared, then parent
/a is shared, we no longer register both children as being shared
and we only show the parent in settings page as being shared.
If the parent is subsequently unshared, then children will also be
unshared.

Bug: 878324
Change-Id: I1c85d75ad934d48cd353299943f7de893ca62017
Reviewed-on: https://chromium-review.googlesource.com/c/1306945
Reviewed-by: Timothy Loh <timloh@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604465}
5 files changed