| 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 847f0fd5f9d82e6dd5d54a4e4db3d75360c35fde..8976bad2eb59f2f51dae90bca53a4199248eaf7d 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -2691,7 +2691,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;
|
|
|