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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2156803002: [HBD] Remove PluginCache and reload plugin list when origin changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reload plugin list and send message with an url whenever origin changes Created 4 years, 5 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/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 376d3a0c68a4eac8be7a2e5db04df70522f1697e..898ec08a146a0d656c73999500d5d2252a40ae43 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -805,12 +805,15 @@ blink::WebMIDIAccessor* RendererBlinkPlatformImpl::createMIDIAccessor(
void RendererBlinkPlatformImpl::getPluginList(
bool refresh,
+ blink::WebSecurityOrigin* origin,
blink::WebPluginListBuilder* builder) {
#if defined(ENABLE_PLUGINS)
std::vector<WebPluginInfo> plugins;
if (!plugin_refresh_allowed_)
refresh = false;
- RenderThread::Get()->Send(new FrameHostMsg_GetPlugins(refresh, &plugins));
+ GURL url = origin ? WebSecurityOriginToGURL(*origin) : GURL();
+ RenderThread::Get()->Send(
+ new FrameHostMsg_GetPlugins(refresh, url, &plugins));
for (const WebPluginInfo& plugin : plugins) {
builder->addPlugin(
plugin.name, plugin.desc,

Powered by Google App Engine
This is Rietveld 408576698