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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp

Issue 2142813003: bluetooth: Avoid including non-blink mojo bindings in blink code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Add DCHECK for enum Created 4 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
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
index 98d0d933fa8f9cf87acc76ba1f196f075e685c14..b0ec4cd4b83d32eaf271d801427356099afb4460 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
@@ -122,11 +122,11 @@ public:
m_resolver->resolve(domDataView);
}
- void onError(const WebBluetoothError& e) override
+ void onError(int32_t error /* Corresponds to WebBluetoothError in web_bluetooth.mojom */) override
{
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
- m_resolver->reject(BluetoothError::take(m_resolver, e));
+ m_resolver->reject(BluetoothError::take(m_resolver, error));
}
private:
@@ -160,11 +160,11 @@ public:
m_resolver->resolve();
}
- void onError(const WebBluetoothError& e) override
+ void onError(int32_t error /* Corresponds to WebBluetoothError in web_bluetooth.mojom */) override
{
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
return;
- m_resolver->reject(BluetoothError::take(m_resolver, e));
+ m_resolver->reject(BluetoothError::take(m_resolver, error));
}
private:

Powered by Google App Engine
This is Rietveld 408576698