| Index: chromeos/dbus/shill_device_client.cc
|
| diff --git a/chromeos/dbus/shill_device_client.cc b/chromeos/dbus/shill_device_client.cc
|
| index 39ca916bebb16c1d2713e5300ae9ce930dadf04c..e758730358cd25394f7b4b9536bfceafd85ab549 100644
|
| --- a/chromeos/dbus/shill_device_client.cc
|
| +++ b/chromeos/dbus/shill_device_client.cc
|
| @@ -399,11 +399,14 @@ class ShillDeviceClientStubImpl : public ShillDeviceClient,
|
| const base::DictionaryValue* device_properties = NULL;
|
| if (!stub_devices_.GetDictionaryWithoutPathExpansion(
|
| device_path.value(), &device_properties)) {
|
| - base::DictionaryValue empty_dictionary;
|
| - callback.Run(DBUS_METHOD_CALL_FAILURE, empty_dictionary);
|
| + scoped_ptr<base::DictionaryValue> empty_dictionary(
|
| + new base::DictionaryValue);
|
| + callback.Run(DBUS_METHOD_CALL_FAILURE, empty_dictionary.Pass());
|
| return;
|
| }
|
| - callback.Run(DBUS_METHOD_CALL_SUCCESS, *device_properties);
|
| + scoped_ptr<base::DictionaryValue> properties_copy(
|
| + device_properties->DeepCopy());
|
| + callback.Run(DBUS_METHOD_CALL_SUCCESS, properties_copy.Pass());
|
| }
|
|
|
| // Posts a task to run a void callback with status code |status|.
|
|
|