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 a6859df7766d121ad3eae10400f07f5aa514637a..9a95855055a7bf7df7fbb1240be6beedca316349 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.cc |
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
@@ -213,6 +213,14 @@ bool ShouldServiceRequest(int process_type, |
return false; |
} |
} |
+#if defined(OS_ANDROID) |
+ if (iter->type() == ResourceRequestBody::Element::TYPE_CONTENT_URL && |
+ !policy->CanReadContentUrl(child_id, iter->content_url())) { |
+ NOTREACHED() << "Denied unauthorized upload of " |
+ << iter->content_url().spec(); |
+ return false; |
+ } |
+#endif |
} |
} |