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

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

Issue 2348703003: Update USBConnectionEvent.idl to match the spec. (Closed)
Patch Set: Add tests. Created 4 years, 3 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
Index: third_party/WebKit/Source/modules/webusb/USBConnectionEvent.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBConnectionEvent.cpp b/third_party/WebKit/Source/modules/webusb/USBConnectionEvent.cpp
index 507356ee355c599abeaa4e006f3f5b432213ecf7..4725fda5463193d689b9e2c0f724d3dde4f41000 100644
--- a/third_party/WebKit/Source/modules/webusb/USBConnectionEvent.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBConnectionEvent.cpp
@@ -21,10 +21,8 @@ USBConnectionEvent* USBConnectionEvent::create(const AtomicString& type, USBDevi
USBConnectionEvent::USBConnectionEvent(const AtomicString& type, const USBConnectionEventInit& initializer)
: Event(type, initializer)
- , m_device(nullptr)
+ , m_device(initializer.device())
{
- if (initializer.hasDevice())
- m_device = initializer.device();
}
USBConnectionEvent::USBConnectionEvent(const AtomicString& type, USBDevice* device)

Powered by Google App Engine
This is Rietveld 408576698