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

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

Issue 1284033002: WebUSB bindings part 5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/USBError.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/USBError.cpp
diff --git a/Source/modules/webusb/USBError.cpp b/Source/modules/webusb/USBError.cpp
index c3574f2ad6aece997a245fb9925c9c4c653db4b8..cea84dfce5d2603844a9d2fded162cbf7deaf837 100644
--- a/Source/modules/webusb/USBError.cpp
+++ b/Source/modules/webusb/USBError.cpp
@@ -11,15 +11,15 @@
namespace blink {
-DOMException* USBError::take(ScriptPromiseResolver*, PassOwnPtr<WebUSBError> webError)
+DOMException* USBError::take(ScriptPromiseResolver*, const WebUSBError& webError)
{
- switch (webError->error) {
+ switch (webError.error) {
case WebUSBError::Error::Device:
case WebUSBError::Error::Security:
case WebUSBError::Error::Service:
case WebUSBError::Error::Transfer:
// TODO(rockot): Differentiate between different error types.
- return DOMException::create(AbortError, webError->message);
+ return DOMException::create(AbortError, webError.message);
}
ASSERT_NOT_REACHED();
return DOMException::create(UnknownError);
« no previous file with comments | « Source/modules/webusb/USBError.h ('k') | public/platform/modules/webusb/WebUSBClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698