Index: mojo/services/view_manager/view_manager_service_impl.cc |
diff --git a/mojo/services/view_manager/view_manager_service_impl.cc b/mojo/services/view_manager/view_manager_service_impl.cc |
index 3b045b9832729c0f4f5e72cc5a226e95538632f5..2f45ae7836d0d906bd9274e491e2e25f6ce743b9 100644 |
--- a/mojo/services/view_manager/view_manager_service_impl.cc |
+++ b/mojo/services/view_manager/view_manager_service_impl.cc |
@@ -101,7 +101,7 @@ mojo::ErrorCode ViewManagerServiceImpl::CreateView(const ViewId& view_id) { |
return mojo::ERROR_CODE_ILLEGAL_ARGUMENT; |
if (view_map_.find(view_id.view_id) != view_map_.end()) |
return mojo::ERROR_CODE_VALUE_IN_USE; |
- view_map_[view_id.view_id] = new ServerView(connection_manager_, view_id); |
+ view_map_[view_id.view_id] = connection_manager_->CreateServerView(view_id); |
known_views_.insert(ViewIdToTransportId(view_id)); |
return mojo::ERROR_CODE_NONE; |
} |