Remove CancelRequest for PermissionManager
https://chromium-review.googlesource.com/c/chromium/src/+/876746
This commit is contained in:
parent
01fdfc4574
commit
529ced80f2
2 changed files with 0 additions and 10 deletions
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue