| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index 21183c34ab6026001aeeccdfca30332555a1e1f1..b0794f53a130f3897295a44b532c10fd25b6f8e2 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -2681,7 +2681,7 @@ bool ResourceDispatcherHostImpl::ShouldServiceRequest(
|
| headers.GetHeader("Origin", &origin_string) && origin_string != "null";
|
| if (has_origin) {
|
| GURL origin(origin_string);
|
| - if (!policy->CanCommitURL(child_id, origin)) {
|
| + if (!policy->CanSetAsOriginHeader(child_id, origin)) {
|
| VLOG(1) << "Killed renderer for illegal origin: " << origin_string;
|
| bad_message::ReceivedBadMessage(filter, bad_message::RDH_ILLEGAL_ORIGIN);
|
| return false;
|
|
|