summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/mozilla_extensions.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/glue/plugins/mozilla_extensions.cc b/webkit/glue/plugins/mozilla_extensions.cc
index e177428..5c0f47f 100644
--- a/webkit/glue/plugins/mozilla_extensions.cc
+++ b/webkit/glue/plugins/mozilla_extensions.cc
@@ -42,11 +42,14 @@ bool MozillaExtensionApi::FindProxyForUrl(const char* url,
return result;
}
- net::ProxyResolverWinHttp proxy_resolver;
- net::ProxyService proxy_service(&proxy_resolver);
- net::ProxyInfo proxy_info;
+ scoped_ptr<net::ProxyService> proxy_service(net::ProxyService::Create(NULL));
+ if (!proxy_service.get()) {
+ NOTREACHED();
+ return result;
+ }
- if (proxy_service.ResolveProxy(GURL(std::string(url)),
+ net::ProxyInfo proxy_info;
+ if (proxy_service->ResolveProxy(GURL(std::string(url)),
&proxy_info,
NULL,
NULL) == net::OK) {