Index: content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc |
diff --git a/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc b/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc |
index d7f4647567d86f0f970a67b0f81433dc7bd944fd..d263ee1c91eb06ce2a315b981dfe1799e80b6072 100644 |
--- a/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc |
+++ b/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc |
@@ -141,6 +141,14 @@ void BrowserPpapiHostImpl::SetOnKeepaliveCallback( |
on_keepalive_callback_ = callback; |
} |
+bool BrowserPpapiHostImpl::IsPotentiallySecurePluginContext( |
+ PP_Instance instance) { |
+ auto* data = instance_map_.get(instance); |
+ if (data == nullptr) |
+ return false; |
+ return data->renderer_data.is_potentially_secure_plugin_context; |
+} |
+ |
void BrowserPpapiHostImpl::AddInstance( |
PP_Instance instance, |
const PepperRendererInstanceData& renderer_instance_data) { |