Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 3, 2022
1 parent 322e968 commit 12b886c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shell/browser/hid/electron_hid_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ bool ElectronHidDelegate::CanRequestDevicePermission(
content::BrowserContext* browser_context,
const url::Origin& origin) {
auto* rfh = content::RenderFrameHost::FromID(render_frame_host_id_);
auto* web_contents =
content::WebContents::FromRenderFrameHost(rfh);
auto* web_contents = content::WebContents::FromRenderFrameHost(rfh);
auto* permission_helper =
WebContentsPermissionHelper::FromWebContents(web_contents);
return permission_helper->CheckHIDAccessPermission(
Expand All @@ -83,7 +82,7 @@ void ElectronHidDelegate::RevokeDevicePermission(
content::BrowserContext* browser_context,
const url::Origin& origin,
const device::mojom::HidDeviceInfo& device) {
auto* rfh = content::RenderFrameHost::FromID(render_frame_host_id_);
auto* rfh = content::RenderFrameHost::FromID(render_frame_host_id_);
return GetChooserContext(browser_context)
->RevokeDevicePermission(origin, device, rfh);
}
Expand Down

0 comments on commit 12b886c

Please sign in to comment.