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

Unified Diff: services/contacts/contacts_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
« no previous file with comments | « services/clipboard/clipboard_apptest.cc ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/contacts/contacts_apptest.cc
diff --git a/services/contacts/contacts_apptest.cc b/services/contacts/contacts_apptest.cc
index 55419267c154e02971399f86aa6475c015834f93..4a3cba2da8de958563044364aa72177776ba8e46 100644
--- a/services/contacts/contacts_apptest.cc
+++ b/services/contacts/contacts_apptest.cc
@@ -5,6 +5,7 @@
#include "base/run_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/contacts/interfaces/contacts.mojom.h"
namespace contacts {
@@ -16,8 +17,8 @@ class ContactAppTest : public mojo::test::ApplicationTestBase {
void SetUp() override {
mojo::test::ApplicationTestBase::SetUp();
- application_impl()->ConnectToServiceDeprecated("mojo:contacts",
- &contacts_service_);
+ mojo::ConnectToService(application_impl()->shell(), "mojo:contacts",
+ GetProxy(&contacts_service_));
}
protected:
« no previous file with comments | « services/clipboard/clipboard_apptest.cc ('k') | services/dart/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698