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

Unified Diff: services/js/network_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/js/echo_apptest.cc ('k') | services/js/pingpong_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/network_apptest.cc
diff --git a/services/js/network_apptest.cc b/services/js/network_apptest.cc
index aebab42e882e0d7b900febf1630cd899e9bda956..961a70756f15d1c55f06e9f428781c7a5ee7222e 100644
--- a/services/js/network_apptest.cc
+++ b/services/js/network_apptest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/files/file_util.h"
+#include "mojo/public/cpp/application/connect.h"
#include "services/js/test/js_application_test_base.h"
#include "services/js/test/network_test_service.mojom.h"
@@ -19,7 +20,8 @@ class JSNetworkTest : public test::JSApplicationTestBase {
void SetUp() override {
ApplicationTestBase::SetUp();
const std::string& url = JSAppURL("network_test.js");
- application_impl()->ConnectToServiceDeprecated(url, &network_test_service_);
+ mojo::ConnectToService(application_impl()->shell(), url,
+ GetProxy(&network_test_service_));
}
NetworkTestServicePtr network_test_service_;
« no previous file with comments | « services/js/echo_apptest.cc ('k') | services/js/pingpong_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698