From 529ced80f29a0ce2349b8016037218554a349c54 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Sun, 8 Apr 2018 22:53:57 +0530 Subject: [PATCH] Remove CancelRequest for PermissionManager https://chromium-review.googlesource.com/c/chromium/src/+/876746 --- atom/browser/atom_permission_manager.cc | 9 --------- atom/browser/atom_permission_manager.h | 1 - 2 files changed, 10 deletions(-) diff --git a/atom/browser/atom_permission_manager.cc b/atom/browser/atom_permission_manager.cc index e6269a411a..2184044341 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 1b955f2351..de23837330 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;