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

Unified Diff: media/mojo/clients/mojo_android_overlay.cc

Issue 2883913003: Add multiple destruction callbacks to AndroidOverlay. (Closed)
Patch Set: rebased Created 3 years, 7 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: media/mojo/clients/mojo_android_overlay.cc
diff --git a/media/mojo/clients/mojo_android_overlay.cc b/media/mojo/clients/mojo_android_overlay.cc
index eb03d7414ba477292c375171f882f475c5cb8cbf..0faee7e8e071f40d3e3dcde74061381837cac2e9 100644
--- a/media/mojo/clients/mojo_android_overlay.cc
+++ b/media/mojo/clients/mojo_android_overlay.cc
@@ -73,7 +73,7 @@ void MojoAndroidOverlay::OnDestroyed() {
if (!received_surface_)
config_.is_failed(this);
else
- config_.is_destroyed(this);
+ RunDestructionCallbacks();
// Note: we do not delete |overlay_ptr_| here. Our client must delete us to
// signal that we should do that, since it still might be in use.

Powered by Google App Engine
This is Rietveld 408576698