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

Unified Diff: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc

Issue 2582293003: MD system tray: Avoid adding separator as the first item of Bluetooth device list. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
diff --git a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
index ed5ae69e926e18cd0126486268aa33cde4a3cf58..028be209532d1b5c3da7ea348e76c342e066b4d8 100644
--- a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
+++ b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
@@ -331,8 +331,10 @@ class BluetoothDetailedView : public TrayDetailsView {
false, bluetooth_enabled);
if (discovered_not_paired_devices_.size() > 0) {
if (UseMd()) {
- scroll_content()->AddChildView(
- TrayPopupUtils::CreateListItemSeparator(false));
+ if (scroll_content()->has_children()) {
+ scroll_content()->AddChildView(
+ TrayPopupUtils::CreateListItemSeparator(false));
+ }
} else {
AddScrollSeparator();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698