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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_page.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_page.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
index 8fbd23ce5d1500b718d8be80c41649f92aa6ad75..e23ed90c9e17b244d0fc70244be821926f643269 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
@@ -25,8 +25,6 @@ var bluetoothApis = bluetoothApis || {
Polymer({
is: 'settings-bluetooth-page',
- behaviors: [I18nBehavior],
-
properties: {
/** Preferences state. */
prefs: {
@@ -119,12 +117,14 @@ Polymer({
},
/**
+ * @param {boolean} enabled
+ * @param {string} onstr
+ * @param {string} offstr
* @return {string}
* @private
*/
- getDescription_: function() {
- return this.i18n(
- this.bluetoothEnabled_ ? 'bluetoothEnabled' : 'bluetoothDisabled');
+ getOnOffString_: function(enabled, onstr, offstr) {
+ return enabled ? onstr : offstr;
},
/**

Powered by Google App Engine
This is Rietveld 408576698