From 8683379d89ea462b33023e9e44d9337313faedc1 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 12 Jun 2014 20:43:16 +0000 Subject: [PATCH] Fix execution of OnBeforePluginLoad (issue #1284). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1916@1745 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/content_browser_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcef/browser/content_browser_client.cc b/libcef/browser/content_browser_client.cc index af09b87cb..fd1c7e6c3 100644 --- a/libcef/browser/content_browser_client.cc +++ b/libcef/browser/content_browser_client.cc @@ -223,7 +223,7 @@ class CefPluginServiceFilter : public content::PluginServiceFilter { virtual ~CefPluginServiceFilter() {} virtual bool IsPluginAvailable(int render_process_id, - int render_view_id, + int render_frame_id, const void* context, const GURL& url, const GURL& policy_url, @@ -231,8 +231,8 @@ class CefPluginServiceFilter : public content::PluginServiceFilter { bool allowed = true; CefRefPtr browser = - CefBrowserHostImpl::GetBrowserForView(render_process_id, - render_view_id); + CefBrowserHostImpl::GetBrowserForFrame(render_process_id, + render_frame_id); if (browser.get()) { CefRefPtr client = browser->GetClient(); if (client.get()) {