| 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: {
|
|
|