Fix execution of OnBeforePluginLoad (issue #1284).
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1916@1745 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
efb977ebd6
commit
8683379d89
|
@ -223,7 +223,7 @@ class CefPluginServiceFilter : public content::PluginServiceFilter {
|
||||||
virtual ~CefPluginServiceFilter() {}
|
virtual ~CefPluginServiceFilter() {}
|
||||||
|
|
||||||
virtual bool IsPluginAvailable(int render_process_id,
|
virtual bool IsPluginAvailable(int render_process_id,
|
||||||
int render_view_id,
|
int render_frame_id,
|
||||||
const void* context,
|
const void* context,
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
const GURL& policy_url,
|
const GURL& policy_url,
|
||||||
|
@ -231,8 +231,8 @@ class CefPluginServiceFilter : public content::PluginServiceFilter {
|
||||||
bool allowed = true;
|
bool allowed = true;
|
||||||
|
|
||||||
CefRefPtr<CefBrowserHostImpl> browser =
|
CefRefPtr<CefBrowserHostImpl> browser =
|
||||||
CefBrowserHostImpl::GetBrowserForView(render_process_id,
|
CefBrowserHostImpl::GetBrowserForFrame(render_process_id,
|
||||||
render_view_id);
|
render_frame_id);
|
||||||
if (browser.get()) {
|
if (browser.get()) {
|
||||||
CefRefPtr<CefClient> client = browser->GetClient();
|
CefRefPtr<CefClient> client = browser->GetClient();
|
||||||
if (client.get()) {
|
if (client.get()) {
|
||||||
|
|
Loading…
Reference in New Issue