Index: ash/common/system/chromeos/palette/palette_tray.cc |
diff --git a/ash/common/system/chromeos/palette/palette_tray.cc b/ash/common/system/chromeos/palette/palette_tray.cc |
index d205b4b04d4f3e9ebcc5b51c010092a52725f658..ad98120a348505588fa198e49e32c3fa7828bc6e 100644 |
--- a/ash/common/system/chromeos/palette/palette_tray.cc |
+++ b/ash/common/system/chromeos/palette/palette_tray.cc |
@@ -171,6 +171,9 @@ bool PaletteTray::PerformAction(const ui::Event& event) { |
} |
bool PaletteTray::OpenBubble() { |
+ if (bubble_) |
+ return false; |
+ |
views::TrayBubbleView::InitParams init_params( |
views::TrayBubbleView::ANCHOR_TYPE_TRAY, GetAnchorAlignment(), |
kPaletteWidth, kPaletteWidth); |
@@ -196,7 +199,6 @@ bool PaletteTray::OpenBubble() { |
bubble_.reset(new ash::TrayBubbleWrapper(this, bubble_view)); |
SetDrawBackgroundAsActive(true); |
- |
return true; |
} |