Index: chrome/browser/chromeos/system_key_event_listener.cc |
diff --git a/chrome/browser/chromeos/system_key_event_listener.cc b/chrome/browser/chromeos/system_key_event_listener.cc |
index 0ac003a9c8c057654844acebe560984264707ad6..748152c47895945122fd9b73fc9dafca041a0a22 100644 |
--- a/chrome/browser/chromeos/system_key_event_listener.cc |
+++ b/chrome/browser/chromeos/system_key_event_listener.cc |
@@ -8,6 +8,7 @@ |
#include <X11/XF86keysym.h> |
#include "chrome/browser/chromeos/audio_handler.h" |
+#include "chrome/browser/chromeos/brightness_bubble.h" |
#include "chrome/browser/chromeos/volume_bubble.h" |
#include "cros/chromeos_wm_ipc_enums.h" |
@@ -131,6 +132,7 @@ void SystemKeyEventListener::OnVolumeMute() { |
// http://crosbug.com/3751 |
audio_handler_->SetMute(true); |
VolumeBubble::instance()->ShowBubble(0); |
+ BrightnessBubble::instance()->HideBubble(); |
} |
void SystemKeyEventListener::OnVolumeDown() { |
@@ -141,6 +143,7 @@ void SystemKeyEventListener::OnVolumeDown() { |
VolumeBubble::instance()->ShowBubble( |
audio_handler_->GetVolumePercent()); |
} |
+ BrightnessBubble::instance()->HideBubble(); |
} |
void SystemKeyEventListener::OnVolumeUp() { |
@@ -150,6 +153,7 @@ void SystemKeyEventListener::OnVolumeUp() { |
audio_handler_->AdjustVolumeByPercent(kStepPercentage); |
VolumeBubble::instance()->ShowBubble( |
audio_handler_->GetVolumePercent()); |
+ BrightnessBubble::instance()->HideBubble(); |
} |
} // namespace chromeos |