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

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

Issue 1875413002: MD Settings: polish top-level bluetooth page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 4 years, 8 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 41ba307bde90b37e189e6bc0065722102514e0f7..405d29b9cd0f386f6a675481e6f7805c0a3d2699 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
@@ -197,6 +197,16 @@ Polymer({
},
/**
+ * @param {boolean} bluetoothEnabled
+ * @param {boolean} deviceListExpanded
+ * @return {boolean} Whether the <iron-collapse> can be shown.
+ * @private
+ */
+ canShowDeviceList_: function(bluetoothEnabled, deviceListExpanded) {
+ return bluetoothEnabled && deviceListExpanded;
+ },
+
+ /**
* If bluetooth is enabled, request the complete list of devices and update
* |deviceList|.
* @private

Powered by Google App Engine
This is Rietveld 408576698