Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2512)

Unified Diff: chrome/browser/chromeos/disks/disk_mount_manager.cc

Issue 8915024: Retry 114494 - Remove BindStateHolder and have Bind() return a Callback<> object directly." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/disks/disk_mount_manager.cc
diff --git a/chrome/browser/chromeos/disks/disk_mount_manager.cc b/chrome/browser/chromeos/disks/disk_mount_manager.cc
index dbe898ff7916a135464b8604316358aa3fffb36c..e04abcb13d06d337258cdb16f7ab0bd64c1cd6a6 100644
--- a/chrome/browser/chromeos/disks/disk_mount_manager.cc
+++ b/chrome/browser/chromeos/disks/disk_mount_manager.cc
@@ -412,7 +412,9 @@ class DiskMountManagerImpl : public DiskMountManager {
}
// Callback to handle mount event signals.
- void OnMountEvent(MountEventType event, std::string device_path) {
+ void OnMountEvent(MountEventType event, const std::string& device_path_arg) {
+ // Take a copy of the argument so we can modify it below.
+ std::string device_path = device_path_arg;
DiskMountManagerEventType type = MOUNT_DEVICE_ADDED;
switch (event) {
case DISK_ADDED: {

Powered by Google App Engine
This is Rietveld 408576698