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

Unified Diff: mojo/examples/pepper_container_app/pepper_container_app.cc

Issue 372273004: Shutdown cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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: mojo/examples/pepper_container_app/pepper_container_app.cc
diff --git a/mojo/examples/pepper_container_app/pepper_container_app.cc b/mojo/examples/pepper_container_app/pepper_container_app.cc
index dc4a9cecf390b2b227507219a69f0d0ccb4dae37..cec08cd5523e71ae9d6a56b5793b98e0564fe394 100644
--- a/mojo/examples/pepper_container_app/pepper_container_app.cc
+++ b/mojo/examples/pepper_container_app/pepper_container_app.cc
@@ -55,7 +55,7 @@ class PepperContainerApp: public ApplicationDelegate,
plugin_instance_.reset();
}
- virtual void OnDestroyed() OVERRIDE {
+ virtual void OnDestroyed(const mojo::Callback<void()>& callback) OVERRIDE {
ppapi::ProxyAutoLock lock;
if (plugin_instance_) {
@@ -64,6 +64,7 @@ class PepperContainerApp: public ApplicationDelegate,
}
base::MessageLoop::current()->Quit();
+ callback.Run();
}
virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698