Make Origin(const GURL&) constructor private.

https://chromium-review.googlesource.com/c/chromium/src/+/729284
This commit is contained in:
deepak1556 2018-04-12 13:07:54 +05:30 committed by Samuel Attard
parent 11fc8374c0
commit eab4227cbf
2 changed files with 3 additions and 2 deletions

View file

@ -1966,7 +1966,8 @@ v8::Local<v8::Value> WebContents::Debugger(v8::Isolate* isolate) {
void WebContents::GrantOriginAccess(const GURL& url) {
content::ChildProcessSecurityPolicy::GetInstance()->GrantOrigin(
web_contents()->GetMainFrame()->GetProcess()->GetID(), url::Origin(url));
web_contents()->GetMainFrame()->GetProcess()->GetID(),
url::Origin::Create(url));
}
// static

View file

@ -100,7 +100,7 @@ void RequestGarbageCollectionForTesting(v8::Isolate* isolate) {
}
bool IsSameOrigin(const GURL& l, const GURL& r) {
return url::Origin(l).IsSameOriginWith(url::Origin(r));
return url::Origin::Create(l).IsSameOriginWith(url::Origin::Create(r));
}
void Initialize(v8::Local<v8::Object> exports,