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

Unified Diff: mojo/services/test_service/test_time_service_impl.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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: mojo/services/test_service/test_time_service_impl.cc
diff --git a/mojo/services/test_service/test_time_service_impl.cc b/mojo/services/test_service/test_time_service_impl.cc
index ee4028d75b91f42e4439d98d8a9e2851b31fd90d..3074e59b2f13a9934f92a8455f7a8dadded7d621 100644
--- a/mojo/services/test_service/test_time_service_impl.cc
+++ b/mojo/services/test_service/test_time_service_impl.cc
@@ -11,15 +11,15 @@
#include "base/time/time.h"
#include "mojo/services/test_service/test_request_tracker.mojom.h"
#include "mojo/services/test_service/tracked_service.h"
-#include "mojo/shell/public/cpp/shell.h"
+#include "mojo/shell/public/cpp/connector.h"
namespace mojo {
namespace test {
TestTimeServiceImpl::TestTimeServiceImpl(
- Shell* shell,
+ Connector* connector,
InterfaceRequest<TestTimeService> request)
- : shell_(shell), binding_(this, std::move(request)) {}
+ : connector_(connector), binding_(this, std::move(request)) {}
TestTimeServiceImpl::~TestTimeServiceImpl() {
}
@@ -27,7 +27,7 @@ TestTimeServiceImpl::~TestTimeServiceImpl() {
void TestTimeServiceImpl::StartTrackingRequests(
const mojo::Callback<void()>& callback) {
TestRequestTrackerPtr tracker;
- shell_->ConnectToInterface("mojo:test_request_tracker_app", &tracker);
+ connector_->ConnectToInterface("mojo:test_request_tracker_app", &tracker);
tracking_.reset(new TrackedService(std::move(tracker), Name_, callback));
}
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.h ('k') | mojo/services/tracing/public/cpp/tracing_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698