Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2211)

Unified Diff: Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h ('k') | Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h ('k') | Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698