| Index: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
|
| diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
|
| index 772b1d6c10e3e89fd80d6bd795e4c3c901c1f67b..4e811da50dc593cfb01e1210961624f00f11b625 100644
|
| --- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
|
| +++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
|
| @@ -815,10 +815,8 @@ void ViewManagerClientImpl::AddRoot(Node* root) {
|
| void ViewManagerClientImpl::RemoveRoot(Node* root) {
|
| std::vector<Node*>::iterator it =
|
| std::find(roots_.begin(), roots_.end(), root);
|
| - if (it != roots_.end()) {
|
| + if (it != roots_.end())
|
| roots_.erase(it);
|
| - delegate_->OnRootRemoved(this, root);
|
| - }
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|