Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: net/proxy/proxy_service_mojo.cc

Issue 1017453005: Add support for ProxyResolverErrorObserver to ProxyResolverMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_resolver_mojo_unittest.cc ('k') | net/proxy/proxy_service_mojo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_service_mojo.cc
diff --git a/net/proxy/proxy_service_mojo.cc b/net/proxy/proxy_service_mojo.cc
index 86da99aff2949502152b13f977c18ace1de71ac6..fe8185326dbd6bb58d896d856fe1873e60a20149 100644
--- a/net/proxy/proxy_service_mojo.cc
+++ b/net/proxy/proxy_service_mojo.cc
@@ -5,11 +5,13 @@
#include "net/proxy/proxy_service_mojo.h"
#include "base/logging.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "net/dns/mojo_host_resolver_impl.h"
#include "net/interfaces/proxy_resolver_service.mojom.h"
#include "net/proxy/in_process_mojo_proxy_resolver_factory.h"
#include "net/proxy/mojo_proxy_resolver_factory.h"
#include "net/proxy/mojo_proxy_resolver_impl.h"
+#include "net/proxy/network_delegate_error_observer.h"
#include "net/proxy/proxy_resolver_factory.h"
#include "net/proxy/proxy_resolver_mojo.h"
#include "net/proxy/proxy_resolver_v8_tracing.h"
@@ -31,8 +33,11 @@ ProxyService* CreateProxyServiceUsingMojoFactory(
DCHECK(host_resolver);
ProxyService* proxy_service = new ProxyService(
- proxy_config_service, make_scoped_ptr(new ProxyResolverFactoryMojo(
- mojo_proxy_factory, host_resolver)),
+ proxy_config_service,
+ make_scoped_ptr(new ProxyResolverFactoryMojo(
+ mojo_proxy_factory, host_resolver,
+ base::Bind(&NetworkDelegateErrorObserver::Create, network_delegate,
+ base::MessageLoopProxy::current()))),
net_log);
// Configure fetchers to use for PAC script downloads and auto-detect.
« no previous file with comments | « net/proxy/proxy_resolver_mojo_unittest.cc ('k') | net/proxy/proxy_service_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698