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

Unified Diff: chrome/browser/chromeos/setting_level_bubble.cc

Issue 5620004: chromeos: Show onscreen bubble when brightness changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos
Patch Set: update comment Created 10 years 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: chrome/browser/chromeos/setting_level_bubble.cc
diff --git a/chrome/browser/chromeos/setting_level_bubble.cc b/chrome/browser/chromeos/setting_level_bubble.cc
index eb918e9caabbe5283eeb74937ecfc59dc5101fdc..8648237314a0bd4df62b4fa0efe854df8353a4cd 100644
--- a/chrome/browser/chromeos/setting_level_bubble.cc
+++ b/chrome/browser/chromeos/setting_level_bubble.cc
@@ -115,11 +115,15 @@ void SettingLevelBubble::ShowBubble(int percent) {
this, &SettingLevelBubble::OnTimeout);
}
-void SettingLevelBubble::OnTimeout() {
+void SettingLevelBubble::HideBubble() {
if (bubble_)
bubble_->Close();
}
+void SettingLevelBubble::OnTimeout() {
+ HideBubble();
+}
+
void SettingLevelBubble::InfoBubbleClosing(InfoBubble* info_bubble, bool) {
DCHECK(info_bubble == bubble_);
timeout_timer_.Stop();

Powered by Google App Engine
This is Rietveld 408576698