Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / notifications / extension_welcome_notification.cc
index def1e01..335ebb8 100644 (file)
@@ -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);
   }