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

Unified Diff: Source/modules/bluetooth/BluetoothError.cpp

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/bluetooth/BluetoothError.h ('k') | Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothError.cpp
diff --git a/Source/modules/bluetooth/BluetoothError.cpp b/Source/modules/bluetooth/BluetoothError.cpp
index c84259c44811f7c6e033b96d72c05fd09bcfde9e..fb1502ffd240da56f8d09ce0f801214ded220d02 100644
--- a/Source/modules/bluetooth/BluetoothError.cpp
+++ b/Source/modules/bluetooth/BluetoothError.cpp
@@ -10,31 +10,31 @@
namespace blink {
-DOMException* BluetoothError::take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothError> webError)
+DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothError& webError)
{
- switch (webError->errorType) {
+ switch (webError.errorType) {
case WebBluetoothError::AbortError:
- return DOMException::create(AbortError, webError->message);
+ return DOMException::create(AbortError, webError.message);
case WebBluetoothError::InvalidModificationError:
- return DOMException::create(InvalidModificationError, webError->message);
+ return DOMException::create(InvalidModificationError, webError.message);
case WebBluetoothError::InvalidStateError:
- return DOMException::create(InvalidStateError, webError->message);
+ return DOMException::create(InvalidStateError, webError.message);
case WebBluetoothError::NetworkError:
- return DOMException::create(NetworkError, webError->message);
+ return DOMException::create(NetworkError, webError.message);
case WebBluetoothError::NotFoundError:
- return DOMException::create(NotFoundError, webError->message);
+ return DOMException::create(NotFoundError, webError.message);
case WebBluetoothError::NotSupportedError:
- return DOMException::create(NotSupportedError, webError->message);
+ return DOMException::create(NotSupportedError, webError.message);
case WebBluetoothError::SecurityError:
- return DOMException::create(SecurityError, webError->message);
+ return DOMException::create(SecurityError, webError.message);
case WebBluetoothError::SyntaxError:
- return DOMException::create(SyntaxError, webError->message);
+ return DOMException::create(SyntaxError, webError.message);
case WebBluetoothError::ErrorMessage:
// Handled below so I can maintain the indentation when this switch goes away.
break;
}
- switch (webError->errorMessage) {
+ switch (webError.errorMessage) {
#define MAP_ERROR(enumeration, name, message) \
case WebBluetoothErrorMessage::enumeration: \
return DOMException::create(name, message)
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.h ('k') | Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698