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

Unified Diff: services/native_viewport/app_delegate.cc

Issue 1979723002: ApplicationConnection devolution, part 3. (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/native_viewport/ozone/app_delegate_ozone.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 e6ac53421ff1924840176001371b15d68ff9ee0f..0848298f165af096d6ee3c64a7585c772e5cbff8 100644
--- a/services/native_viewport/app_delegate.cc
+++ b/services/native_viewport/app_delegate.cc
@@ -60,8 +60,8 @@ void NativeViewportAppDelegate::Initialize(mojo::ApplicationImpl* application) {
}
bool NativeViewportAppDelegate::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
- connection->GetServiceProviderImpl().AddService<mojo::NativeViewport>([this](
+ mojo::ServiceProviderImpl* service_provider_impl) {
+ service_provider_impl->AddService<mojo::NativeViewport>([this](
const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<mojo::NativeViewport> native_viewport_request) {
if (!gpu_state_.get())
@@ -70,7 +70,7 @@ bool NativeViewportAppDelegate::ConfigureIncomingConnection(
native_viewport_request.Pass());
});
- connection->GetServiceProviderImpl().AddService<mojo::Gpu>(
+ service_provider_impl->AddService<mojo::Gpu>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<mojo::Gpu> gpu_request) {
if (!gpu_state_.get())
« no previous file with comments | « services/native_viewport/app_delegate.h ('k') | services/native_viewport/ozone/app_delegate_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698