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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js

Issue 2146553005: MD Settings: Bluetooth: Add error dialog and messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_602538_bluetooth_fixes_0
Patch Set: Feedback 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: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
index 020ab409f22f8cff99ad52173f1c22dd6cf55e51..9d44d68ea6778089b4ff7d58a37b0e7c056a785b 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
@@ -357,9 +357,10 @@ Polymer({
* @return {string} The title of for that |dialogId|.
*/
getTitle_: function(dialogId) {
- return this.i18n(
- dialogId == 'addDevice' ? 'bluetoothAddDevicePageTitle' :
- 'bluetoothPairDevicePageTitle');
+ if (dialogId == 'addDevice')
+ return this.i18n('bluetoothAddDevicePageTitle');
+ // Use the 'pair' title for the pairing dialog and error dialog.
+ return this.i18n('bluetoothPairDevicePageTitle');
},
/**

Powered by Google App Engine
This is Rietveld 408576698