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

Unified Diff: chrome/browser/chromeos/status/clock_menu_button.cc

Issue 3158014: Added tooltips to stats bar items. (Closed)
Patch Set: Fixed browser tests. Created 10 years, 4 months 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/status/clock_menu_button.cc
diff --git a/chrome/browser/chromeos/status/clock_menu_button.cc b/chrome/browser/chromeos/status/clock_menu_button.cc
index 434f323e296002ba63511f2c4eb15808061f21bc..f63593f0a130dc3b2eca2521291a3dc4cf62938a 100644
--- a/chrome/browser/chromeos/status/clock_menu_button.cc
+++ b/chrome/browser/chromeos/status/clock_menu_button.cc
@@ -70,7 +70,9 @@ void ClockMenuButton::UpdateTextAndSetNextTimer() {
}
void ClockMenuButton::UpdateText() {
- SetText(base::TimeFormatTimeOfDay(base::Time::Now()));
+ base::Time time(base::Time::Now());
+ SetText(base::TimeFormatTimeOfDay(time));
+ SetTooltipText(base::TimeFormatShortDate(time));
SchedulePaint();
}
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/status/feedback_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698