X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fnotifications%2Fextension_welcome_notification.cc;h=335ebb8fc3c53e6363c39d1ba8a762836ec6ff7a;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=def1e0124eda03a5be3284c823aacca88852f034;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/notifications/extension_welcome_notification.cc b/src/chrome/browser/notifications/extension_welcome_notification.cc index def1e01..335ebb8 100644 --- a/src/chrome/browser/notifications/extension_welcome_notification.cc +++ b/src/chrome/browser/notifications/extension_welcome_notification.cc @@ -47,10 +47,7 @@ class NotificationCallbacks } // 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. @@ -60,8 +57,7 @@ class NotificationCallbacks } } - virtual void Click() OVERRIDE {} - virtual void ButtonClick(int index) OVERRIDE { + void ButtonClick(int index) override { if (index == 0) { OpenNotificationLearnMoreTab(); } else if (index == 1) { @@ -98,7 +94,7 @@ class NotificationCallbacks notifier, false); } - virtual ~NotificationCallbacks() {} + ~NotificationCallbacks() override {} Profile* const profile_; @@ -116,17 +112,14 @@ class DefaultDelegate : public ExtensionWelcomeNotification::Delegate { 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); }