public:
explicit GoogleNowNotificationStatsCollector(
message_center::MessageCenter* message_center);
- virtual ~GoogleNowNotificationStatsCollector();
+ ~GoogleNowNotificationStatsCollector() override;
private:
// MessageCenterObserver
- virtual void OnNotificationDisplayed(
+ void OnNotificationDisplayed(
const std::string& notification_id,
- const message_center::DisplaySource source) OVERRIDE;
- virtual void OnCenterVisibilityChanged(
- message_center::Visibility visibility) OVERRIDE;
+ const message_center::DisplaySource source) override;
+ void OnCenterVisibilityChanged(
+ message_center::Visibility visibility) override;
// Counts the number of Google Now Notifications in the message center.
int CountVisibleGoogleNowNotifications();
- // Returns true if the notification ID is for Google Now.
- bool IsNotificationIdForGoogleNow(const std::string& notification_id);
+ // Returns true if the ID of a visible notification is for Google Now.
+ bool IsVisibleNotificationIdForGoogleNow(const std::string& notification_id);
// Weak, global.
message_center::MessageCenter* message_center_;