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

Unified Diff: services/prediction/prediction_apptests.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/prediction/prediction_apptests.cc
diff --git a/services/prediction/prediction_apptests.cc b/services/prediction/prediction_apptests.cc
index 9e1ee258c1e4d0f3e9f9da2fd63eb720276c88cb..8d1b7bcb6d11a2efd787fb5ea83d540271e39049 100644
--- a/services/prediction/prediction_apptests.cc
+++ b/services/prediction/prediction_apptests.cc
@@ -8,6 +8,7 @@
#include "base/message_loop/message_loop.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/services/prediction/interfaces/prediction.mojom.h"
namespace prediction {
@@ -26,8 +27,8 @@ class PredictionApptest : public mojo::test::ApplicationTestBase {
void SetUp() override {
mojo::test::ApplicationTestBase::SetUp();
- application_impl()->ConnectToServiceDeprecated("mojo:prediction_service",
- &prediction_);
+ mojo::ConnectToService(application_impl()->shell(),
+ "mojo:prediction_service", GetProxy(&prediction_));
}
std::vector<std::string> GetPredictionListClient(

Powered by Google App Engine
This is Rietveld 408576698