File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ void URLRequestContextGetterQt::updateStorageSettings()
182
182
new ProxyConfigServiceQt (
183
183
net::ProxyService::CreateSystemProxyConfigService (
184
184
content::BrowserThread::GetTaskRunnerForThread (BrowserThread::IO)));
185
- m_proxyResolverFactory = ChromeMojoProxyResolverFactory::CreateWithStrongBinding ();
185
+ // pass interface to io thread
186
+ m_proxyResolverFactoryInterface = ChromeMojoProxyResolverFactory::CreateWithStrongBinding ().PassInterface ();
186
187
187
188
if (m_contextInitialized)
188
189
content::BrowserThread::PostTask (content::BrowserThread::IO, FROM_HERE,
@@ -259,8 +260,9 @@ void URLRequestContextGetterQt::generateStorage()
259
260
if (!m_dhcpProxyScriptFetcherFactory)
260
261
m_dhcpProxyScriptFetcherFactory.reset (new net::DhcpProxyScriptFetcherFactory);
261
262
263
+ proxy_resolver::mojom::ProxyResolverFactoryPtr proxyResolver (std::move (m_proxyResolverFactoryInterface));
262
264
m_storage->set_proxy_service (content::CreateProxyServiceUsingMojoFactory (
263
- std::move (m_proxyResolverFactory ),
265
+ std::move (proxyResolver ),
264
266
std::unique_ptr<net::ProxyConfigService>(proxyConfigService),
265
267
std::make_unique<net::ProxyScriptFetcherImpl>(m_urlRequestContext.get ()),
266
268
m_dhcpProxyScriptFetcherFactory->Create (m_urlRequestContext.get ()),
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class URLRequestContextGetterQt : public net::URLRequestContextGetter {
126
126
content::URLRequestInterceptorScopedVector m_requestInterceptors;
127
127
std::unique_ptr<net::HttpNetworkSession> m_httpNetworkSession;
128
128
std::unique_ptr<net::HttpAuthPreferences> m_httpAuthPreferences;
129
- proxy_resolver::mojom::ProxyResolverFactoryPtr m_proxyResolverFactory ;
129
+ mojo::InterfacePtrInfo< proxy_resolver::mojom::ProxyResolverFactory> m_proxyResolverFactoryInterface ;
130
130
std::unique_ptr<net::TransportSecurityPersister> m_transportSecurityPersister;
131
131
132
132
QList<QByteArray> m_installedCustomSchemes;
You can’t perform that action at this time.
0 commit comments