Index: Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp |
diff --git a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp |
index 75453778db7dba3f4ab72921935b876c3d9bbfe9..b0e34fd6397a93683355789d13053eff78a5fd44 100644 |
--- a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp |
+++ b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp |
@@ -7,12 +7,11 @@ |
namespace blink { |
-PassRefPtr<DOMArrayBuffer> ConvertWebVectorToArrayBuffer::take(ScriptPromiseResolver*, PassOwnPtr<WebVector<uint8_t>> webVector) |
+PassRefPtr<DOMArrayBuffer> ConvertWebVectorToArrayBuffer::take(ScriptPromiseResolver*, const WebVector<uint8_t>& webVector) |
{ |
- static_assert(sizeof(*webVector->data()) == 1, "uint8_t should be a single byte"); |
- ASSERT(webVector); |
+ static_assert(sizeof(*webVector.data()) == 1, "uint8_t should be a single byte"); |
- RefPtr<DOMArrayBuffer> domBuffer = DOMArrayBuffer::create(webVector->data(), webVector->size()); |
+ RefPtr<DOMArrayBuffer> domBuffer = DOMArrayBuffer::create(webVector.data(), webVector.size()); |
return domBuffer; |
} |