summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ash/system/bluetooth/tray_bluetooth.cc1
-rw-r--r--ash/system/network/tray_network.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc
index e4146ac..4d5bc35 100644
--- a/ash/system/bluetooth/tray_bluetooth.cc
+++ b/ash/system/bluetooth/tray_bluetooth.cc
@@ -94,6 +94,7 @@ class BluetoothDetailedView : public views::View,
views::View* devices = new views::View;
devices->SetLayoutManager(new views::BoxLayout(
views::BoxLayout::kVertical, 0, 0, 1));
+ device_map_.clear();
for (size_t i = 0; i < list.size(); i++) {
HoverHighlightView* container = new HoverHighlightView(this);
diff --git a/ash/system/network/tray_network.cc b/ash/system/network/tray_network.cc
index 3138117..712af7e 100644
--- a/ash/system/network/tray_network.cc
+++ b/ash/system/network/tray_network.cc
@@ -231,6 +231,7 @@ class NetworkDetailedView : public views::View,
views::View* networks = new views::View;
networks->SetLayoutManager(new views::BoxLayout(
views::BoxLayout::kVertical, 0, 0, 1));
+ network_map_.clear();
for (size_t i = 0; i < list.size(); i++) {
HoverHighlightView* container = new HoverHighlightView(this);
container->AddIconAndLabel(list[i].image,