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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBDevice.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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 | « third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webusb/USBDevice.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBDevice.cpp b/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
index c0e999c02445b0c3765cf5f3cf3e3d15aab66b91..675b7a12d3a449d87b2a41cea06c1a371d2aa6c1 100644
--- a/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
@@ -85,9 +85,9 @@ Vector<uint8_t> ConvertBufferSource(
vector.Append(static_cast<uint8_t*>(buffer.getAsArrayBuffer()->Data()),
buffer.getAsArrayBuffer()->ByteLength());
else
- vector.Append(
- static_cast<uint8_t*>(buffer.getAsArrayBufferView()->BaseAddress()),
- buffer.getAsArrayBufferView()->byteLength());
+ vector.Append(static_cast<uint8_t*>(
+ buffer.getAsArrayBufferView().View()->BaseAddress()),
+ buffer.getAsArrayBufferView().View()->byteLength());
return vector;
}
« no previous file with comments | « third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698