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

Unified Diff: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: III Created 5 years, 1 month 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: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
index 65f07c6029ee4751bad98e25e7eb0fb6ec038051..672d8a3c5c4c339592e0a7c097cf3bc7314aa078 100644
--- a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
+++ b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
@@ -548,6 +548,27 @@ cr.define('options', function() {
case chrome.bluetoothPrivate.ConnectResultType.UNSUPPORTED_DEVICE:
message = 'bluetoothConnectUnsupportedDevice';
break;
+ case chrome.bluetoothPrivate.ConnectResultType.ATTRIBUTE_LENGTH_INVALID:
scheib 2015/11/26 00:02:51 We should check with [OWNERS] of this UI and propo
+ message = 'bluetoothConnectAttributeLengthInvalid';
+ break;
+ case chrome.bluetoothPrivate.ConnectResultType.CONNECTION_CONGESTED:
+ message = 'bluetoothConnectConnectionCongested';
+ break;
+ case chrome.bluetoothPrivate.ConnctResultType.INSUFFICIENT_ENCRYPTION:
+ message = 'bluetoothConnectInsufficientEncryption';
+ break;
+ case chrome.bluetoothPrivate.ConnctResultType.OFFSET_INVALID:
+ message = 'bluetoothConnectOffsetInvalid';
+ break;
+ case chrome.bluetoothPrivate.ConnctResultType.READ_FAILED:
+ message = 'bluetoothConnectReadFailed';
scheib 2015/11/26 00:02:51 Enum and string should use 'permitted' instead of
+ break;
+ case chrome.bluetoothPrivate.ConnctResultType.REQUEST_NOT_SUPPORTED:
+ message = 'bluetoothConnectRequestNotSupported';
+ break;
+ case chrome.bluetoothPrivate.ConnctResultType.WRITE_FAILED:
+ message = 'bluetoothConnectWriteFailed';
scheib 2015/11/26 00:02:51 Enum and string should use 'permitted' instead of
Kai Jiang 2015/11/29 10:40:51 Done.
+ break;
}
if (message)
BluetoothPairing.showMessage({message: message, address: address});

Powered by Google App Engine
This is Rietveld 408576698