summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/npapi/plugin_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/npapi/plugin_host.cc')
-rw-r--r--webkit/plugins/npapi/plugin_host.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/plugin_host.cc b/webkit/plugins/npapi/plugin_host.cc
index 7c41c1b..ec5b6c7 100644
--- a/webkit/plugins/npapi/plugin_host.cc
+++ b/webkit/plugins/npapi/plugin_host.cc
@@ -1006,9 +1006,15 @@ NPError NPN_GetValueForURL(NPP id,
switch (variable) {
case NPNURLVProxy: {
result = "DIRECT";
- if (!webkit_glue::FindProxyForUrl(GURL((std::string(url))), &result))
+ scoped_refptr<PluginInstance> plugin(FindInstance(id));
+ if (!plugin)
+ return NPERR_GENERIC_ERROR;
+
+ WebPlugin* webplugin = plugin->webplugin();
+ if (!webplugin)
return NPERR_GENERIC_ERROR;
+ result = webplugin->FindProxyForUrl(GURL(std::string(url)), &result);
break;
}
case NPNURLVCookie: {