Index: extensions/browser/api/bluetooth_low_energy/utils.cc |
diff --git a/extensions/browser/api/bluetooth_low_energy/utils.cc b/extensions/browser/api/bluetooth_low_energy/utils.cc |
index 5767b7a6e0410ee45ccb8afdfc0b166621c5dc7e..df97b81e5835b56d52a4d6141fff5dd86fcf909d 100644 |
--- a/extensions/browser/api/bluetooth_low_energy/utils.cc |
+++ b/extensions/browser/api/bluetooth_low_energy/utils.cc |
@@ -37,8 +37,8 @@ std::unique_ptr<base::DictionaryValue> CharacteristicToValue( |
std::vector<CharacteristicProperty> properties = from->properties; |
from->properties.clear(); |
std::unique_ptr<base::DictionaryValue> to = from->ToValue(); |
- to->SetWithoutPathExpansion( |
- "properties", CharacteristicPropertiesToValue(properties).release()); |
+ to->SetWithoutPathExpansion("properties", |
+ CharacteristicPropertiesToValue(properties)); |
return to; |
} |
@@ -56,7 +56,7 @@ std::unique_ptr<base::DictionaryValue> DescriptorToValue(Descriptor* from) { |
to->GetDictionaryWithoutPathExpansion("characteristic", &chrc_value); |
DCHECK(chrc_value); |
chrc_value->SetWithoutPathExpansion( |
- "properties", CharacteristicPropertiesToValue(properties).release()); |
+ "properties", CharacteristicPropertiesToValue(properties)); |
return to; |
} |