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

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

Issue 2957043002: Add a row in the network tray to inform users to turn Bluetooth on to enable Tether. (Closed)
Patch Set: khorimoto@ and jamescook@ 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/bluetooth/tray_bluetooth.cc
diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc
index 3a49c9898f79c2d7a324e71f259fb2771b947eef..86984aacad08fa2b6a2348e20c7ad9bf280ade1c 100644
--- a/ash/system/bluetooth/tray_bluetooth.cc
+++ b/ash/system/bluetooth/tray_bluetooth.cc
@@ -20,6 +20,7 @@
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_details_view.h"
+#include "ash/system/tray/tray_info_label.h"
#include "ash/system/tray/tray_item_more.h"
#include "ash/system/tray/tray_popup_item_style.h"
#include "ash/system/tray/tray_popup_utils.h"
@@ -314,8 +315,8 @@ class BluetoothDetailedView : public TrayDetailsView {
// Show user Bluetooth state if there is no bluetooth devices in list.
if (device_map_.size() == 0 && bluetooth_available && bluetooth_enabled) {
- scroll_content()->AddChildView(
- new InfoLabel(IDS_ASH_STATUS_TRAY_BLUETOOTH_DISCOVERING));
+ scroll_content()->AddChildView(new TrayInfoLabel(
+ nullptr /* delegate */, IDS_ASH_STATUS_TRAY_BLUETOOTH_DISCOVERING));
}
// Focus the device which was focused before the device-list update.

Powered by Google App Engine
This is Rietveld 408576698