diff --git a/brightray/browser/platform_notification_service.cc b/brightray/browser/platform_notification_service.cc index b1ce2d6cde..630dbe0ad0 100644 --- a/brightray/browser/platform_notification_service.cc +++ b/brightray/browser/platform_notification_service.cc @@ -49,7 +49,7 @@ class NotificationDelegateImpl final : public brightray::NotificationDelegate { void NotificationClick() override { content::NotificationEventDispatcher::GetInstance() - ->DispatchNonPersistentClickEvent(notification_id_); + ->DispatchNonPersistentClickEvent(notification_id_, base::DoNothing()); } void NotificationClosed() override { @@ -76,24 +76,6 @@ PlatformNotificationService::PlatformNotificationService( PlatformNotificationService::~PlatformNotificationService() {} -blink::mojom::PermissionStatus -PlatformNotificationService::CheckPermissionOnUIThread( - content::BrowserContext* browser_context, - const GURL& origin, - int render_process_id) { - render_process_id_ = render_process_id; - return blink::mojom::PermissionStatus::GRANTED; -} - -blink::mojom::PermissionStatus -PlatformNotificationService::CheckPermissionOnIOThread( - content::ResourceContext* resource_context, - const GURL& origin, - int render_process_id) { - render_process_id_ = render_process_id; - return blink::mojom::PermissionStatus::GRANTED; -} - void PlatformNotificationService::DisplayNotification( content::BrowserContext* browser_context, const std::string& notification_id, diff --git a/brightray/browser/platform_notification_service.h b/brightray/browser/platform_notification_service.h index b200fbed8e..7043a88aa5 100644 --- a/brightray/browser/platform_notification_service.h +++ b/brightray/browser/platform_notification_service.h @@ -23,14 +23,6 @@ class PlatformNotificationService protected: // content::PlatformNotificationService: - blink::mojom::PermissionStatus CheckPermissionOnUIThread( - content::BrowserContext* browser_context, - const GURL& origin, - int render_process_id) override; - blink::mojom::PermissionStatus CheckPermissionOnIOThread( - content::ResourceContext* resource_context, - const GURL& origin, - int render_process_id) override; void DisplayNotification( content::BrowserContext* browser_context, const std::string& notification_id,