Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: content/renderer/pepper/host_dispatcher_wrapper.cc

Issue 2567173002: Clean up Document::isSecureContext (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_dispatcher_wrapper.cc
diff --git a/content/renderer/pepper/host_dispatcher_wrapper.cc b/content/renderer/pepper/host_dispatcher_wrapper.cc
index 75b58eff2f1c8a8cc44eeaf4f21ec300f88b88b3..29a523caeaeb5d9f2281fe97e2a1efe05096a5f0 100644
--- a/content/renderer/pepper/host_dispatcher_wrapper.cc
+++ b/content/renderer/pepper/host_dispatcher_wrapper.cc
@@ -83,11 +83,8 @@ void HostDispatcherWrapper::AddInstance(PP_Instance instance) {
if (host) {
RenderFrame* render_frame = host->GetRenderFrameForInstance(instance);
PepperPluginInstance* plugin_instance = host->GetPluginInstance(instance);
- blink::WebString unused;
bool is_privileged_context =
- plugin_instance->GetContainer()
- ->document()
- .isSecureContext(unused) &&
+ plugin_instance->GetContainer()->document().isSecureContext() &&
content::IsOriginSecure(plugin_instance->GetPluginURL());
render_frame->Send(new FrameHostMsg_DidCreateOutOfProcessPepperInstance(
plugin_child_id_, instance,
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698