diff --git a/atom/browser/atom_permission_manager.cc b/atom/browser/atom_permission_manager.cc index e6269a411ad3..218404434142 100644 --- a/atom/browser/atom_permission_manager.cc +++ b/atom/browser/atom_permission_manager.cc @@ -186,15 +186,6 @@ void AtomPermissionManager::OnPermissionResponse( } } -void AtomPermissionManager::CancelPermissionRequest(int request_id) { - auto* pending_request = pending_requests_.Lookup(request_id); - if (!pending_request) - return; - - if (!WebContentsDestroyed(pending_request->render_process_id())) - pending_request->RunCallback(); - pending_requests_.Remove(request_id); -} void AtomPermissionManager::ResetPermission(content::PermissionType permission, const GURL& requesting_origin, diff --git a/atom/browser/atom_permission_manager.h b/atom/browser/atom_permission_manager.h index 1b955f2351f8..de2383733053 100644 --- a/atom/browser/atom_permission_manager.h +++ b/atom/browser/atom_permission_manager.h @@ -73,7 +73,6 @@ class AtomPermissionManager : public content::PermissionManager { blink::mojom::PermissionStatus status); // content::PermissionManager: - void CancelPermissionRequest(int request_id) override; void ResetPermission(content::PermissionType permission, const GURL& requesting_origin, const GURL& embedding_origin) override;