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

Unified Diff: mojo/services/test_service/test_request_tracker_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_request_tracker_application.cc
diff --git a/mojo/services/test_service/test_request_tracker_application.cc b/mojo/services/test_service/test_request_tracker_application.cc
index cf5d83187707bedcdb4abe6446b6ee4ba14bace8..4e657cb4bc990b7df64afd68e0cebfd5050690be 100644
--- a/mojo/services/test_service/test_request_tracker_application.cc
+++ b/mojo/services/test_service/test_request_tracker_application.cc
@@ -9,8 +9,8 @@
#include "mojo/public/c/system/main.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 {
@@ -25,8 +25,7 @@ void TestRequestTrackerApplication::Initialize(Shell* shell,
shell_ = shell;
}
-bool TestRequestTrackerApplication::AcceptConnection(
- ApplicationConnection* connection) {
+bool TestRequestTrackerApplication::AcceptConnection(Connection* connection) {
// Every instance of the service and recorder shares the context.
// Note, this app is single-threaded, so this is thread safe.
connection->AddService<TestTimeService>(this);
@@ -36,19 +35,19 @@ bool TestRequestTrackerApplication::AcceptConnection(
}
void TestRequestTrackerApplication::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<TestTimeService> request) {
new TestTimeServiceImpl(shell_, std::move(request));
}
void TestRequestTrackerApplication::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<TestRequestTracker> request) {
new TestRequestTrackerImpl(std::move(request), &context_);
}
void TestRequestTrackerApplication::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<TestTrackedRequestService> request) {
new TestTrackedRequestServiceImpl(std::move(request), &context_);
}
« no previous file with comments | « mojo/services/test_service/test_request_tracker_application.h ('k') | mojo/services/test_service/test_request_tracker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698