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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h

Issue 1730403006: Basic layout tests for WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mojo tests that depend on extra module loading. Created 4 years, 10 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/webusb/USBDevice.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/USBIsochronousInTransferResult.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h
index 43f787f6c9aff8e14945539f191cdcbb426cffe3..fad2470ad4f035a432c87dc717885b4bd6e96ce2 100644
--- a/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h
+++ b/third_party/WebKit/Source/modules/webusb/USBIsochronousInTransferResult.h
@@ -23,9 +23,10 @@ public:
}
USBIsochronousInTransferResult(PassRefPtr<DOMArrayBuffer> data, const HeapVector<Member<USBIsochronousInTransferPacket>>& packets)
- : m_data(DOMDataView::create(data, 0, data->byteLength()))
- , m_packets(packets)
+ : m_packets(packets)
{
+ unsigned byteLength = data->byteLength();
+ m_data = DOMDataView::create(data, 0, byteLength);
}
virtual ~USBIsochronousInTransferResult() {}
@@ -39,7 +40,7 @@ public:
DEFINE_INLINE_TRACE() { visitor->trace(m_packets); }
private:
- const RefPtr<DOMDataView> m_data;
+ RefPtr<DOMDataView> m_data;
const HeapVector<Member<USBIsochronousInTransferPacket>> m_packets;
};
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698