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

Unified Diff: services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.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_apptest.cc
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
index 6f361f6552181c676d385fcc5ba064624ef6b277..e98a4d310df246965717b15b20026e646566e9bc 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc
@@ -12,6 +12,7 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/application_test_base.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/services/authenticating_url_loader_interceptor/interfaces/authenticating_url_loader_interceptor_meta_factory.mojom.h"
@@ -290,9 +291,9 @@ class AuthenticatingURLLoaderInterceptorAppTest
ApplicationTestBase::SetUp();
InitializeNetworkService();
- application_impl()->ConnectToServiceDeprecated(
- "mojo:authenticating_url_loader_interceptor",
- &interceptor_meta_factory_);
+ ConnectToService(application_impl()->shell(),
+ "mojo:authenticating_url_loader_interceptor",
+ GetProxy(&interceptor_meta_factory_));
}
void TearDown() override {
@@ -341,8 +342,8 @@ class AuthenticatingURLLoaderInterceptorAppTest
void InitializeNetworkService() {
network_service_.reset();
- application_impl()->ConnectToServiceDeprecated("mojo:network_service",
- &network_service_);
+ mojo::ConnectToService(application_impl()->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
}
void CloseAuthenticationService() { authentication_service_impl_.reset(); }

Powered by Google App Engine
This is Rietveld 408576698