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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix formatting Created 4 years, 3 months 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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index f97e71fce02a0649c45f4ac4cdb68d30434c4c3e..0eb2f3fa60a009197d6e88e0dbb3f7982088277b 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2615,11 +2615,9 @@ blink::WebPlugin* RenderFrameImpl::createPlugin(
WebPluginInfo info;
std::string mime_type;
bool found = false;
- WebString top_origin = frame->top()->getSecurityOrigin().toString();
- Send(new FrameHostMsg_GetPluginInfo(routing_id_, params.url,
- blink::WebStringToGURL(top_origin),
- params.mimeType.utf8(), &found, &info,
- &mime_type));
+ Send(new FrameHostMsg_GetPluginInfo(
+ routing_id_, params.url, frame->top()->getSecurityOrigin(),
+ params.mimeType.utf8(), &found, &info, &mime_type));
if (!found)
return NULL;

Powered by Google App Engine
This is Rietveld 408576698