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

Unified Diff: ui/message_center/popup_timer.h

Issue 2815093006: Stop notification updates from unpausing toast timers. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | ui/message_center/popup_timers_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/popup_timer.h
diff --git a/ui/message_center/popup_timer.h b/ui/message_center/popup_timer.h
index 494e360b88b1e34ee11cf0bc87e1d99f8554722b..8137d3d2fe93677ccbfe5b5e2e232d19f1bf56c1 100644
--- a/ui/message_center/popup_timer.h
+++ b/ui/message_center/popup_timer.h
@@ -41,6 +41,9 @@ class PopupTimer {
// subsequent calls to Start the timer will continue where it left off.
void Pause();
+ // Returns whether the underlying timer is running or not.
+ bool IsRunning() { return timer_->IsRunning(); }
+
private:
// Notification ID for which this timer applies.
const std::string id_;
« no previous file with comments | « no previous file | ui/message_center/popup_timers_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698