chore: remove unused _grantOriginAccess method (#29976)
This commit is contained in:
parent
6eff9231b8
commit
85a69f88f1
2 changed files with 0 additions and 11 deletions
|
@ -3134,12 +3134,6 @@ content::RenderFrameHost* WebContents::MainFrame() {
|
|||
return web_contents()->GetMainFrame();
|
||||
}
|
||||
|
||||
void WebContents::GrantOriginAccess(const GURL& url) {
|
||||
content::ChildProcessSecurityPolicy::GetInstance()->GrantCommitOrigin(
|
||||
web_contents()->GetMainFrame()->GetProcess()->GetID(),
|
||||
url::Origin::Create(url));
|
||||
}
|
||||
|
||||
void WebContents::NotifyUserActivation() {
|
||||
content::RenderFrameHost* frame = web_contents()->GetMainFrame();
|
||||
if (frame)
|
||||
|
@ -3752,7 +3746,6 @@ v8::Local<v8::ObjectTemplate> WebContents::FillObjectTemplate(
|
|||
&WebContents::SetWebRTCIPHandlingPolicy)
|
||||
.SetMethod("getWebRTCIPHandlingPolicy",
|
||||
&WebContents::GetWebRTCIPHandlingPolicy)
|
||||
.SetMethod("_grantOriginAccess", &WebContents::GrantOriginAccess)
|
||||
.SetMethod("takeHeapSnapshot", &WebContents::TakeHeapSnapshot)
|
||||
.SetMethod("setImageAnimationPolicy",
|
||||
&WebContents::SetImageAnimationPolicy)
|
||||
|
|
|
@ -310,10 +310,6 @@ class WebContents : public gin::Wrappable<WebContents>,
|
|||
// Returns the owner window.
|
||||
v8::Local<v8::Value> GetOwnerBrowserWindow(v8::Isolate* isolate) const;
|
||||
|
||||
// Grants the child process the capability to access URLs with the origin of
|
||||
// the specified URL.
|
||||
void GrantOriginAccess(const GURL& url);
|
||||
|
||||
// Notifies the web page that there is user interaction.
|
||||
void NotifyUserActivation();
|
||||
|
||||
|
|
Loading…
Reference in a new issue