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

Unified Diff: ui/views/widget/desktop_native_widget_helper_aura.cc

Issue 10966026: Fix a crash in DesktopNativeWidgetHelperAura when closing tabs because it was dereferncing a delete… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix crash Created 8 years, 3 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 | « ui/views/widget/desktop_native_widget_helper_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_native_widget_helper_aura.cc
===================================================================
--- ui/views/widget/desktop_native_widget_helper_aura.cc (revision 157681)
+++ ui/views/widget/desktop_native_widget_helper_aura.cc (working copy)
@@ -172,6 +172,11 @@
return root_window_.get();
}
+void DesktopNativeWidgetHelperAura::OnWindowDestroying(aura::Window* window) {
+ window_->RemoveObserver(this);
+ window_ = NULL;
+}
+
gfx::Rect DesktopNativeWidgetHelperAura::ModifyAndSetBounds(
const gfx::Rect& bounds) {
gfx::Rect out_bounds = bounds;
« no previous file with comments | « ui/views/widget/desktop_native_widget_helper_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698