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

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

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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 0f82eb920481acdc32c1043e93f941a55a33c895..940ce60c81d07ccb1e0c6cd0570a7b5c9bdfaf78 100644
--- a/mojo/services/test_service/test_service_application.cc
+++ b/mojo/services/test_service/test_service_application.cc
@@ -10,8 +10,8 @@
#include "mojo/public/c/system/main.h"
#include "mojo/services/test_service/test_service_impl.h"
#include "mojo/services/test_service/test_time_service_impl.h"
-#include "mojo/shell/public/cpp/application_connection.h"
#include "mojo/shell/public/cpp/application_runner.h"
+#include "mojo/shell/public/cpp/connection.h"
namespace mojo {
namespace test {
@@ -28,20 +28,19 @@ void TestServiceApplication::Initialize(Shell* shell, const std::string& url,
shell_ = shell;
}
-bool TestServiceApplication::AcceptConnection(
- ApplicationConnection* connection) {
+bool TestServiceApplication::AcceptConnection(Connection* connection) {
connection->AddService<TestService>(this);
connection->AddService<TestTimeService>(this);
return true;
}
-void TestServiceApplication::Create(ApplicationConnection* connection,
+void TestServiceApplication::Create(Connection* connection,
InterfaceRequest<TestService> request) {
new TestServiceImpl(shell_, this, std::move(request));
AddRef();
}
-void TestServiceApplication::Create(ApplicationConnection* connection,
+void TestServiceApplication::Create(Connection* connection,
InterfaceRequest<TestTimeService> request) {
new TestTimeServiceImpl(shell_, std::move(request));
}
« no previous file with comments | « mojo/services/test_service/test_service_application.h ('k') | mojo/services/test_service/test_time_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698