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

Unified Diff: mojo/services/test_service/test_service_application.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_service_application.cc
diff --git a/mojo/services/test_service/test_service_application.cc b/mojo/services/test_service/test_service_application.cc
index a447c24c0f2dd8d5c66ea9bcd4712156b6f3cbe0..1274c3e0c22d3ebc04a792aded4722ed7cdf87a4 100644
--- a/mojo/services/test_service/test_service_application.cc
+++ b/mojo/services/test_service/test_service_application.cc
@@ -17,15 +17,16 @@ namespace mojo {
namespace test {
TestServiceApplication::TestServiceApplication()
- : ref_count_(0), shell_(nullptr) {
+ : ref_count_(0), connector_(nullptr) {
}
TestServiceApplication::~TestServiceApplication() {
}
-void TestServiceApplication::Initialize(Shell* shell, const std::string& url,
+void TestServiceApplication::Initialize(Connector* connector,
+ const std::string& url,
uint32_t id, uint32_t user_id) {
- shell_ = shell;
+ connector_ = connector;
}
bool TestServiceApplication::AcceptConnection(Connection* connection) {
@@ -36,13 +37,13 @@ bool TestServiceApplication::AcceptConnection(Connection* connection) {
void TestServiceApplication::Create(Connection* connection,
InterfaceRequest<TestService> request) {
- new TestServiceImpl(shell_, this, std::move(request));
+ new TestServiceImpl(connector_, this, std::move(request));
AddRef();
}
void TestServiceApplication::Create(Connection* connection,
InterfaceRequest<TestTimeService> request) {
- new TestTimeServiceImpl(shell_, std::move(request));
+ new TestTimeServiceImpl(connector_, std::move(request));
}
void TestServiceApplication::AddRef() {
« no previous file with comments | « mojo/services/test_service/test_service_application.h ('k') | mojo/services/test_service/test_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698