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

Unified Diff: services/test_service/test_service_impl.cc

Issue 1919313002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 | « no previous file | services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/test_service/test_service_impl.cc
diff --git a/services/test_service/test_service_impl.cc b/services/test_service/test_service_impl.cc
index aa0f4d54911adb0a736b7c94ca7c513d1ae56992..27487c8234d927e4626d1e41a0aaadbb1f2c0f40 100644
--- a/services/test_service/test_service_impl.cc
+++ b/services/test_service/test_service_impl.cc
@@ -8,6 +8,7 @@
#include "base/i18n/time_formatting.h"
#include "base/strings/utf_string_conversions.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "services/test_service/test_service_application.h"
#include "services/test_service/test_time_service_impl.h"
#include "services/test_service/tracked_service.h"
@@ -43,7 +44,7 @@ void SendTimeResponse(
void TestServiceImpl::ConnectToAppAndGetTime(
const mojo::String& app_url,
const mojo::Callback<void(int64_t)>& callback) {
- app_impl_->ConnectToServiceDeprecated(app_url, &time_service_);
+ ConnectToService(app_impl_->shell(), app_url, GetProxy(&time_service_));
if (tracking_) {
tracking_->RecordNewRequest();
time_service_->StartTrackingRequests(mojo::Callback<void()>());
@@ -54,8 +55,8 @@ void TestServiceImpl::ConnectToAppAndGetTime(
void TestServiceImpl::StartTrackingRequests(
const mojo::Callback<void()>& callback) {
TestRequestTrackerPtr tracker;
- app_impl_->ConnectToServiceDeprecated("mojo:test_request_tracker_app",
- &tracker);
+ ConnectToService(app_impl_->shell(), "mojo:test_request_tracker_app",
+ GetProxy(&tracker));
tracking_.reset(new TrackedService(tracker.Pass(), Name_, callback));
}
« no previous file with comments | « no previous file | services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698