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: mojo/services/view_manager/node.cc

Issue 292283002: Finishes up setroots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 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/services/view_manager/ids.h ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/node.cc
diff --git a/mojo/services/view_manager/node.cc b/mojo/services/view_manager/node.cc
index 6309842f6db9c3ac807985199ac62d67c0852706..670012a2508e1d27b4c9d372f512cf581f6ecdcf 100644
--- a/mojo/services/view_manager/node.cc
+++ b/mojo/services/view_manager/node.cc
@@ -38,6 +38,10 @@ Node::Node(NodeDelegate* delegate, const NodeId& id)
Node::~Node() {
SetView(NULL);
+ // This is implicitly done during deletion of the window, but we do it here so
+ // that we're in a known state.
+ if (window_.parent())
+ window_.parent()->RemoveChild(&window_);
}
const Node* Node::GetParent() const {
« no previous file with comments | « mojo/services/view_manager/ids.h ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698