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

Unified Diff: services/native_viewport/app_delegate.cc

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « services/native_viewport/app_delegate.h ('k') | services/prediction/prediction_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/app_delegate.cc
diff --git a/services/native_viewport/app_delegate.cc b/services/native_viewport/app_delegate.cc
index 38ee4032bcc9c87fd549e16bfb9dbfcd78b90850..67e5ecb9afd180eefb3ada28ba30f4b1ab8d3768 100644
--- a/services/native_viewport/app_delegate.cc
+++ b/services/native_viewport/app_delegate.cc
@@ -59,23 +59,24 @@ void NativeViewportAppDelegate::Initialize(mojo::ApplicationImpl* application) {
}
bool NativeViewportAppDelegate::ConfigureIncomingConnection(
- ApplicationConnection* connection) {
- connection->AddService<NativeViewport>(this);
- connection->AddService<Gpu>(this);
+ mojo::ApplicationConnection* connection) {
+ connection->AddService<mojo::NativeViewport>(this);
+ connection->AddService<mojo::Gpu>(this);
return true;
}
void NativeViewportAppDelegate::Create(
- ApplicationConnection* connection,
- mojo::InterfaceRequest<NativeViewport> request) {
+ const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::NativeViewport> request) {
if (!gpu_state_.get())
gpu_state_ = new gles2::GpuState;
new NativeViewportImpl(application_, is_headless_, gpu_state_,
request.Pass());
}
-void NativeViewportAppDelegate::Create(ApplicationConnection* connection,
- mojo::InterfaceRequest<Gpu> request) {
+void NativeViewportAppDelegate::Create(
+ const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::Gpu> request) {
if (!gpu_state_.get())
gpu_state_ = new gles2::GpuState;
new gles2::GpuImpl(request.Pass(), gpu_state_);
« no previous file with comments | « services/native_viewport/app_delegate.h ('k') | services/prediction/prediction_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698