}
// Overridden from NotificationDelegate:
- virtual void Display() OVERRIDE {}
- virtual void Error() OVERRIDE {}
-
- virtual void Close(bool by_user) OVERRIDE {
+ void Close(bool by_user) override {
if (by_user) {
// Setting the preference here may cause the notification erasing
// to reenter. Posting a task avoids this issue.
}
}
- virtual void Click() OVERRIDE {}
- virtual void ButtonClick(int index) OVERRIDE {
+ void ButtonClick(int index) override {
if (index == 0) {
OpenNotificationLearnMoreTab();
} else if (index == 1) {
notifier, false);
}
- virtual ~NotificationCallbacks() {}
+ ~NotificationCallbacks() override {}
Profile* const profile_;
public:
DefaultDelegate() {}
- virtual message_center::MessageCenter* GetMessageCenter() OVERRIDE {
+ message_center::MessageCenter* GetMessageCenter() override {
return g_browser_process->message_center();
}
- virtual base::Time GetCurrentTime() OVERRIDE {
- return base::Time::Now();
- }
+ base::Time GetCurrentTime() override { return base::Time::Now(); }
- virtual void PostTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task) OVERRIDE {
+ void PostTask(const tracked_objects::Location& from_here,
+ const base::Closure& task) override {
base::MessageLoop::current()->PostTask(from_here, task);
}