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

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

Issue 1340523004: Implement USB connection events through the WebUSB client interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change Member back to PersistentWillBeMember. Created 5 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
« no previous file with comments | « Source/modules/webusb/USBConnectionEvent.h ('k') | public/platform/modules/webusb/WebUSBClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webusb/USBConnectionEvent.cpp
diff --git a/Source/modules/webusb/USBConnectionEvent.cpp b/Source/modules/webusb/USBConnectionEvent.cpp
index 517c21ac07b63656a48fe2a9f231f96e78165edb..084f9c54af08b188d157532789cffaa0dfca9125 100644
--- a/Source/modules/webusb/USBConnectionEvent.cpp
+++ b/Source/modules/webusb/USBConnectionEvent.cpp
@@ -10,14 +10,14 @@
namespace blink {
-USBConnectionEvent* USBConnectionEvent::create(const AtomicString& type, const USBConnectionEventInit& initializer)
+PassRefPtrWillBeRawPtr<USBConnectionEvent> USBConnectionEvent::create(const AtomicString& type, const USBConnectionEventInit& initializer)
{
- return new USBConnectionEvent(type, initializer);
+ return adoptRefWillBeNoop(new USBConnectionEvent(type, initializer));
}
-USBConnectionEvent* USBConnectionEvent::create(const AtomicString& type, USBDevice* device)
+PassRefPtrWillBeRawPtr<USBConnectionEvent> USBConnectionEvent::create(const AtomicString& type, USBDevice* device)
{
- return new USBConnectionEvent(type, device);
+ return adoptRefWillBeNoop(new USBConnectionEvent(type, device));
}
USBConnectionEvent::USBConnectionEvent(const AtomicString& type, const USBConnectionEventInit& initializer)
« no previous file with comments | « Source/modules/webusb/USBConnectionEvent.h ('k') | public/platform/modules/webusb/WebUSBClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698