| Index: ash/common/system/tray/system_tray.cc
|
| diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
|
| index b471a79cd70638c73d35de43c0c5c0d0eba675d1..79d76338186a00944900a96e6df48c9155cfeb2b 100644
|
| --- a/ash/common/system/tray/system_tray.cc
|
| +++ b/ash/common/system/tray/system_tray.cc
|
| @@ -707,9 +707,9 @@ void SystemTray::ActivateBubble() {
|
| }
|
|
|
| bool SystemTray::PerformAction(const ui::Event& event) {
|
| - // If we're already showing the default view, hide it; otherwise, show it
|
| - // (and hide any popup that's currently shown).
|
| - if (HasSystemBubbleType(SystemTrayBubble::BUBBLE_TYPE_DEFAULT)) {
|
| + // If we're already showing the menu, hide it; otherwise, show it (and hide
|
| + // any popup that's currently shown).
|
| + if (HasSystemBubble()) {
|
| system_bubble_->bubble()->Close();
|
| } else {
|
| ShowDefaultView(BUBBLE_CREATE_NEW);
|
|
|