summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_cros_disks_client.cc
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/dbus/fake_cros_disks_client.cc
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/dbus/fake_cros_disks_client.cc')
-rw-r--r--chromeos/dbus/fake_cros_disks_client.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/chromeos/dbus/fake_cros_disks_client.cc b/chromeos/dbus/fake_cros_disks_client.cc
index fe5873d..bd863b8 100644
--- a/chromeos/dbus/fake_cros_disks_client.cc
+++ b/chromeos/dbus/fake_cros_disks_client.cc
@@ -28,8 +28,8 @@ void FakeCrosDisksClient::Mount(const std::string& source_path,
void FakeCrosDisksClient::Unmount(const std::string& device_path,
UnmountOptions options,
- const UnmountCallback& callback,
- const UnmountCallback& error_callback) {
+ const base::Closure& callback,
+ const base::Closure& error_callback) {
DCHECK(!callback.is_null());
DCHECK(!error_callback.is_null());
@@ -37,9 +37,7 @@ void FakeCrosDisksClient::Unmount(const std::string& device_path,
last_unmount_device_path_ = device_path;
last_unmount_options_ = options;
base::MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(unmount_success_ ? callback : error_callback,
- device_path));
+ FROM_HERE, unmount_success_ ? callback : error_callback);
if(!unmount_listener_.is_null())
unmount_listener_.Run();
}
@@ -64,9 +62,7 @@ void FakeCrosDisksClient::FormatDevice(const std::string& device_path,
FROM_HERE,
base::Bind(callback, device_path, true));
} else {
- base::MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(error_callback));
+ base::MessageLoopProxy::current()->PostTask(FROM_HERE, error_callback);
}
}