| 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,
|
|
|