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

Unified Diff: mojo/ui/view_provider_app.cc

Issue 1975253002: ApplicationConnection devolution, part 2.1. (Closed) Base URL: https://github.com/domokit/mojo.git@work792-x-work791_service_registry_spimpl
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 | « mojo/ui/view_provider_app.h ('k') | services/asset_bundle/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/view_provider_app.cc
diff --git a/mojo/ui/view_provider_app.cc b/mojo/ui/view_provider_app.cc
index 9df21e3fa9ea32eccee4ec249bc25299042d2ff9..8a1fb1a5e1151920132f7229078d9307b15a4ed2 100644
--- a/mojo/ui/view_provider_app.cc
+++ b/mojo/ui/view_provider_app.cc
@@ -52,18 +52,16 @@ void ViewProviderApp::Initialize(mojo::ApplicationImpl* app_impl) {
bool ViewProviderApp::ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) {
- connection->AddService<mojo::ui::ViewProvider>(this);
+ connection->GetServiceProviderImpl().AddService<ViewProvider>(
+ [this](const ConnectionContext& connection_context,
+ InterfaceRequest<ViewProvider> view_provider_request) {
+ bindings_.AddBinding(
+ new DelegatingViewProvider(this, connection_context.connection_url),
+ view_provider_request.Pass());
+ });
return true;
}
-void ViewProviderApp::Create(
- const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<mojo::ui::ViewProvider> request) {
- bindings_.AddBinding(
- new DelegatingViewProvider(this, connection_context.connection_url),
- request.Pass());
-}
-
void ViewProviderApp::CreateView(
DelegatingViewProvider* provider,
const std::string& view_provider_url,
« no previous file with comments | « mojo/ui/view_provider_app.h ('k') | services/asset_bundle/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698