| 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)
|
|
|