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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views_context.h

Issue 2850403002: Fix crash under ExclusiveAccessBubbleViews::AnimationProgressed(). (Closed)
Patch Set: respond to comments Created 3 years, 8 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: chrome/browser/ui/views/exclusive_access_bubble_views_context.h
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views_context.h b/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
index d2300ea5f678a7ebfd51380b3d9fd7f6a98e2a6a..e5da3b369becaf88fe5be4868a5bf24b2fd85204 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
@@ -47,6 +47,11 @@ class ExclusiveAccessBubbleViewsContext {
// Returns the bounds of the top level View in screen coordinate system.
virtual gfx::Rect GetTopContainerBoundsInScreen() = 0;
+
+ // Destroy any exclusive access bubble. This allows the bubble to ask its
+ // owner to clean up when the bubble observes its native widget being
+ // destroyed before the owner requested it.
+ virtual void DestroyAnyExclusiveAccessBubble() = 0;
};
#endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698