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

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

Issue 2725463002: MD Settings: Update Bluetooth toggle UI to match spec. (Closed)
Patch Set: Elim unused IDS Created 3 years, 10 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_subpage.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
index 6af380232d5189e677b1d6eb25781b975af05ded..eec93c88966f03604539f1f3f60bfe940e0d67b8 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
@@ -348,11 +348,14 @@ Polymer({
},
/**
+ * @param {boolean} enabled
+ * @param {string} onstr
+ * @param {string} offstr
* @return {string}
* @private
*/
- getOffOnString_: function() {
- return this.i18n(this.bluetoothEnabled ? 'bluetoothOn' : 'bluetoothOff');
+ getOnOffString_: function(enabled, onstr, offstr) {
+ return enabled ? onstr : offstr;
},
/**

Powered by Google App Engine
This is Rietveld 408576698