Index: extensions/browser/api/socket/socket_api.cc |
diff --git a/extensions/browser/api/socket/socket_api.cc b/extensions/browser/api/socket/socket_api.cc |
index cd52dff9fcbb206f8472653cf93df89274976f5a..372a24b00b22bd10d7b6c639c5e28cc913fda095 100644 |
--- a/extensions/browser/api/socket/socket_api.cc |
+++ b/extensions/browser/api/socket/socket_api.cc |
@@ -600,7 +600,8 @@ void SocketRecvFromFunction::OnCompleted(int bytes_read, |
result->Set(kDataKey, base::Value::CreateWithCopiedBuffer(io_buffer->data(), |
bytes_read)); |
} else { |
- result->Set(kDataKey, new base::Value(base::Value::Type::BINARY)); |
+ result->Set(kDataKey, |
+ base::MakeUnique<base::Value>(base::Value::Type::BINARY)); |
} |
result->SetString(kAddressKey, address); |
result->SetInteger(kPortKey, port); |