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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 11418262: Fix crash on win_aura buildbot because a RootWindow was getting multiple AddRootWindowObserver call… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: check RootWindow before using it Created 8 years, 1 month 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: content/browser/web_contents/web_contents_view_aura.cc
===================================================================
--- content/browser/web_contents/web_contents_view_aura.cc (revision 170228)
+++ content/browser/web_contents/web_contents_view_aura.cc (working copy)
@@ -264,6 +264,8 @@
virtual ~WindowObserver() {
view_->window_->RemoveObserver(this);
+ if (view_->window_->GetRootWindow())
+ view_->window_->GetRootWindow()->RemoveRootWindowObserver(this);
if (parent_)
parent_->RemoveObserver(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