Index: chromeos/dbus/fake_shill_service_client.cc |
diff --git a/chromeos/dbus/fake_shill_service_client.cc b/chromeos/dbus/fake_shill_service_client.cc |
index 7075c383f3ed7e5c86ca4ea2d168067b3690cfea..363b1c7a7a5b02a8d7e6598cbd6dabeb026a8e97 100644 |
--- a/chromeos/dbus/fake_shill_service_client.cc |
+++ b/chromeos/dbus/fake_shill_service_client.cc |
@@ -534,8 +534,8 @@ base::DictionaryValue* FakeShillServiceClient::GetModifiableServiceProperties( |
if (!stub_services_.GetDictionaryWithoutPathExpansion(service_path, |
&properties) && |
create_if_missing) { |
- properties = new base::DictionaryValue; |
- stub_services_.Set(service_path, properties); |
+ properties = stub_services_.SetDictionary( |
+ service_path, base::MakeUnique<base::DictionaryValue>()); |
} |
return properties; |
} |