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

Unified Diff: ash/system/network/network_list.cc

Issue 2957043002: Add a row in the network tray to inform users to turn Bluetooth on to enable Tether. (Closed)
Patch Set: tdanderson@ and khorimoto@ comments Created 3 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: ash/system/network/network_list.cc
diff --git a/ash/system/network/network_list.cc b/ash/system/network/network_list.cc
index 9ed47151bdadd73493461f693f89e7b1972e9aa5..f4ae466a2d55cf850a98d2d9b1fa52e56082e373 100644
--- a/ash/system/network/network_list.cc
+++ b/ash/system/network/network_list.cc
@@ -641,13 +641,19 @@ void NetworkListView::UpdateInfoLabel(int message_id,
return;
}
if (!info_label)
- info_label = new InfoLabel(message_id);
+ info_label = new InfoLabel(message_id, this);
Kyle Horimoto 2017/07/10 18:37:07 /* delegate */
lesliewatkins 2017/07/12 21:49:50 Done.
else
- info_label->SetMessage(message_id);
+ info_label->Update(message_id);
+
PlaceViewAtIndex(info_label, insertion_index);
*info_label_ptr = info_label;
}
+void NetworkListView::OnLabelClicked(TrayDetailsView::InfoLabel* label) {
+ if (label->message_id() == IDS_ASH_STATUS_TRAY_ENABLE_BLUETOOTH)
+ Shell::Get()->system_tray_controller()->ShowBluetoothSettings();
+}
+
int NetworkListView::UpdateSectionHeaderRow(NetworkTypePattern pattern,
bool enabled,
int child_index,

Powered by Google App Engine
This is Rietveld 408576698