Cut 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 Review URL: https://codereview.chromium.org/372853003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281920 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment