summaryrefslogtreecommitdiffstats
path: root/chromeos/disks
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-02 06:59:39 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-02 06:59:39 +0000
commitffdcc7a9c45e324a41012079e55e10713ebacf63 (patch)
tree32b9d5cf2773dd90b93dbd4f1585dd217ac2c90b /chromeos/disks
parentf7284760291ee2a2fb07e7ee2010a8facb5df0ff (diff)
downloadchromium_src-ffdcc7a9c45e324a41012079e55e10713ebacf63.zip
chromium_src-ffdcc7a9c45e324a41012079e55e10713ebacf63.tar.gz
chromium_src-ffdcc7a9c45e324a41012079e55e10713ebacf63.tar.bz2
chromeos: Change CrosDisksClient::Unmount's callback type to base::Closure
CrosDisksClient::Unmount() has been just passing the argument to the callback. BUG=None TEST=chromeos_unittests R=satorux@chromium.org Review URL: https://codereview.chromium.org/18472002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209632 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/disks')
-rw-r--r--chromeos/disks/disk_mount_manager.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/chromeos/disks/disk_mount_manager.cc b/chromeos/disks/disk_mount_manager.cc
index 525e1b6..ba928f2 100644
--- a/chromeos/disks/disk_mount_manager.cc
+++ b/chromeos/disks/disk_mount_manager.cc
@@ -90,11 +90,13 @@ class DiskMountManagerImpl : public DiskMountManager {
base::Bind(&DiskMountManagerImpl::OnUnmountPath,
weak_ptr_factory_.GetWeakPtr(),
callback,
- true),
+ true,
+ mount_path),
base::Bind(&DiskMountManagerImpl::OnUnmountPath,
weak_ptr_factory_.GetWeakPtr(),
callback,
- false));
+ false,
+ mount_path));
}
// DiskMountManager override.
@@ -173,9 +175,15 @@ class DiskMountManagerImpl : public DiskMountManager {
devices_to_unmount[i],
UNMOUNT_OPTIONS_NONE,
base::Bind(&DiskMountManagerImpl::OnUnmountDeviceRecursively,
- weak_ptr_factory_.GetWeakPtr(), cb_data, true),
+ weak_ptr_factory_.GetWeakPtr(),
+ cb_data,
+ true,
+ devices_to_unmount[i]),
base::Bind(&DiskMountManagerImpl::OnUnmountDeviceRecursively,
- weak_ptr_factory_.GetWeakPtr(), cb_data, false));
+ weak_ptr_factory_.GetWeakPtr(),
+ cb_data,
+ false,
+ devices_to_unmount[i]));
}
}