Chromium Code Reviews| Index: android_webview/lib/aw_content_browser_client.cc |
| diff --git a/android_webview/lib/aw_content_browser_client.cc b/android_webview/lib/aw_content_browser_client.cc |
| index 2a07343e799bf0e3d319f988884755e51a0d4538..d44a475755b544eca4744e03a13a889aeea6117d 100644 |
| --- a/android_webview/lib/aw_content_browser_client.cc |
| +++ b/android_webview/lib/aw_content_browser_client.cc |
| @@ -6,6 +6,9 @@ |
| #include "android_webview/browser/aw_cookie_access_policy.h" |
| #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h" |
| +#include "android_webview/common/url_constants.h" |
| +#include "content/public/browser/child_process_security_policy.h" |
| +#include "content/public/browser/render_process_host.h" |
| namespace android_webview { |
| @@ -16,6 +19,14 @@ AwContentBrowserClient::AwContentBrowserClient() |
| AwContentBrowserClient::~AwContentBrowserClient() { |
| } |
| +void AwContentBrowserClient::RenderProcessHostCreated( |
| + content::RenderProcessHost* host) { |
| + // Grant content: scheme to the whole process, since we impose per-view |
| + // access checks. |
|
joth
2012/10/08 17:29:01
hmm I guess technically we could leave this and do
mnaganov (inactive)
2012/10/09 09:59:36
In that case we will end up with having different
|
| + content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme( |
| + host->GetID(), android_webview::kContentScheme); |
| +} |
| + |
| void AwContentBrowserClient::ResourceDispatcherHostCreated() { |
| ChromeContentBrowserClient::ResourceDispatcherHostCreated(); |
| AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated(); |