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

Unified Diff: ui/compositor/layer_animation_observer.h

Issue 10869066: Attempt 2 at Fixes crash introduced @ 153047 (you can hit crash by maximizing a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better fix 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
Index: ui/compositor/layer_animation_observer.h
diff --git a/ui/compositor/layer_animation_observer.h b/ui/compositor/layer_animation_observer.h
index 8810090c98c326c91e27c2f17d09f44cdb509033..3484a2c46d870e928e39752b0727f73f93149515 100644
--- a/ui/compositor/layer_animation_observer.h
+++ b/ui/compositor/layer_animation_observer.h
@@ -113,6 +113,10 @@ class COMPOSITOR_EXPORT ImplicitAnimationObserver
void CheckCompleted();
bool active_;
+
+ // Set to true in the destructor (if non-NULL). Used to detect deletion while
+ // calling out.
+ bool* destroyed_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698