refactor: plumb RFH instead of RPH for notifications (#28790)
This commit is contained in:
parent
37f7e66873
commit
ee8b69d067
7 changed files with 32 additions and 32 deletions
|
@ -861,10 +861,10 @@ ElectronBrowserClient::CreateBrowserMainParts(
|
|||
}
|
||||
|
||||
void ElectronBrowserClient::WebNotificationAllowed(
|
||||
int render_process_id,
|
||||
content::RenderFrameHost* rfh,
|
||||
base::OnceCallback<void(bool, bool)> callback) {
|
||||
content::WebContents* web_contents =
|
||||
WebContentsPreferences::GetWebContentsFromProcessID(render_process_id);
|
||||
content::WebContents::FromRenderFrameHost(rfh);
|
||||
if (!web_contents) {
|
||||
std::move(callback).Run(false, false);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue