Remove CancelRequest for PermissionManager

https://chromium-review.googlesource.com/c/chromium/src/+/876746
This commit is contained in:
deepak1556 2018-04-08 22:53:57 +05:30 committed by Samuel Attard
parent 01fdfc4574
commit 529ced80f2
2 changed files with 0 additions and 10 deletions

View file

@ -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, void AtomPermissionManager::ResetPermission(content::PermissionType permission,
const GURL& requesting_origin, const GURL& requesting_origin,

View file

@ -73,7 +73,6 @@ class AtomPermissionManager : public content::PermissionManager {
blink::mojom::PermissionStatus status); blink::mojom::PermissionStatus status);
// content::PermissionManager: // content::PermissionManager:
void CancelPermissionRequest(int request_id) override;
void ResetPermission(content::PermissionType permission, void ResetPermission(content::PermissionType permission,
const GURL& requesting_origin, const GURL& requesting_origin,
const GURL& embedding_origin) override; const GURL& embedding_origin) override;