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

Unified Diff: content/child/bluetooth/bluetooth_dispatcher.cc

Issue 1118053003: bluetooth: Add NetworkError for Bluetooth on browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-connect-gatt-implementation
Patch Set: Remove from bluetooth_dispatcher_host so that we can commit Created 5 years, 7 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 | « no previous file | content/common/bluetooth/bluetooth_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/bluetooth/bluetooth_dispatcher.cc
diff --git a/content/child/bluetooth/bluetooth_dispatcher.cc b/content/child/bluetooth/bluetooth_dispatcher.cc
index ed8f3110cf7a39cac666754a92e9fb6e59dda352..7a02ef05fe66e16a979afb4543c248288430585b 100644
--- a/content/child/bluetooth/bluetooth_dispatcher.cc
+++ b/content/child/bluetooth/bluetooth_dispatcher.cc
@@ -39,6 +39,8 @@ int CurrentWorkerId() {
WebBluetoothError::ErrorType WebBluetoothErrorFromBluetoothError(
BluetoothError error_type) {
switch (error_type) {
+ case BluetoothError::NETWORK_ERROR:
+ return WebBluetoothError::NetworkError;
case BluetoothError::NOT_FOUND:
return WebBluetoothError::NotFoundError;
case BluetoothError::SECURITY:
« no previous file with comments | « no previous file | content/common/bluetooth/bluetooth_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698