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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

Issue 9348113: Fix two crash and potential leak&crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert unnecessary file, updated comment Created 8 years, 10 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
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index b96fb04e15651210eddb460536bd94c7ca395fa8..daf3c7ee4f429eb91363d665fea56688f44007f0 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -121,6 +121,13 @@ void SystemModalContainerLayoutManager::OnWindowPropertyChanged(
}
}
+void SystemModalContainerLayoutManager::OnWindowDestroying(
+ aura::Window* window) {
+ if (modal_screen_ && modal_screen_->GetNativeView() == window)
+ modal_screen_ = NULL;
+}
+
+
////////////////////////////////////////////////////////////////////////////////
// SystemModalContainerLayoutManager,
// ui::ImplicitAnimationObserver implementation:
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.h ('k') | chrome/browser/ui/views/notifications/balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698