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

Unified Diff: chrome/renderer/plugins/chrome_plugin_placeholder.cc

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix dat merge Created 4 years, 2 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: chrome/renderer/plugins/chrome_plugin_placeholder.cc
diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
index 78bc0577f50229f8e9a25923302c83c9c4c1901a..64d4189ce44b77d77d33061e0a9b964dc44e3d02 100644
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
@@ -289,14 +289,9 @@ void ChromePluginPlaceholder::PluginListChanged() {
ChromeViewHostMsg_GetPluginInfo_Output output;
std::string mime_type(GetPluginParams().mimeType.utf8());
- blink::WebString top_origin =
- GetFrame()->top()->getSecurityOrigin().toString();
- render_frame()->Send(
- new ChromeViewHostMsg_GetPluginInfo(routing_id(),
- GURL(GetPluginParams().url),
- blink::WebStringToGURL(top_origin),
- mime_type,
- &output));
+ render_frame()->Send(new ChromeViewHostMsg_GetPluginInfo(
+ routing_id(), GURL(GetPluginParams().url),
+ GetFrame()->top()->getSecurityOrigin(), mime_type, &output));
if (output.status == status_)
return;
blink::WebPlugin* new_plugin = ChromeContentRendererClient::CreatePlugin(
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/browser/frame_host/render_frame_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698