DescriptionCut reference from MountedDiskMonitor to DiskMountManager.
For number of reasons:
* The previous code implicitly relied on the fact that the Observer
events are notified to MountedDiskMonitor before VolumeManager
(otherwise VolumeManager::OnDiskEvent misses the hard-unplug event.)
It indeed holds, but it is not a part of explicit contract of base::ObserverList.
We should not rely on the detail.
* It simplifies MountedDiskMonitor (see the number of lines.)
* It simplifies the initialization process of VolumeManager/DiskMountManager,
i.e., removes duplicated RequestMountInfoRefresh calls.
This is desired for Bug 356583.
BUG=356583
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281920
Patch Set 1 #Patch Set 2 : Test #Patch Set 3 : Fix more test #
Messages
Total messages: 13 (0 generated)
|