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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc

Issue 1915403002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 8 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
Index: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
index 2da79d88675f92808e9ed2e02d1a73a68e7eccee..38ac0e92fe4c997e4f14cc54edbeeee447606e5c 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_factory.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/stl_util.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor.h"
namespace mojo {
@@ -26,7 +27,8 @@ AuthenticatingURLLoaderInterceptorFactory::
std::move(authentication_service))),
app_(app),
cached_tokens_(cached_tokens) {
- app_->ConnectToServiceDeprecated("mojo:network_service", &network_service_);
+ ConnectToService(app_->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
authentication_service_.set_connection_error_handler(
[this]() { ClearAuthenticationService(); });
}

Powered by Google App Engine
This is Rietveld 408576698