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

Unified Diff: ui/android/view_android.cc

Issue 2147853002: ui: Correctly add children for the ViewAndroid tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index 3771c37282d3359e8febec8ebcbb99db1b53a260..6334526014b0a0450834a4ab4b2ce0189d5342f3 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -40,7 +40,7 @@ void ViewAndroid::AddChild(ViewAndroid* child) {
children_.push_back(child);
if (child->parent_)
- parent_->RemoveChild(child);
+ child->parent_->RemoveChild(child);
child->parent_ = this;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698