Made NotificationDelegateImpl final

The class is designed to call `delete` on itself and because it doesn't have
a virtual destructor, it shouldn't be derived from.
This commit is contained in:
Ales Pergl 2017-11-02 21:39:34 +01:00 committed by Cheng Zhao
parent 505f2ab9e7
commit 9ca658238b

View file

@ -45,7 +45,7 @@ void OnWebNotificationAllowed(base::WeakPtr<Notification> notification,
}
}
class NotificationDelegateImpl : public brightray::NotificationDelegate {
class NotificationDelegateImpl final : public brightray::NotificationDelegate {
public:
explicit NotificationDelegateImpl(const std::string& notification_id)
: notification_id_(notification_id) {}