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

Unified Diff: mojo/examples/compositor_app/compositor_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/compositor_app/compositor_app.cc
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc
index 6a5a8c45fa3ee28bf07277977a5e6d467261ae9a..54aa23578ce9f91742fbe44dc136fd6cea8e1215 100644
--- a/mojo/examples/compositor_app/compositor_app.cc
+++ b/mojo/examples/compositor_app/compositor_app.cc
@@ -39,8 +39,9 @@ class SampleApp : public ApplicationDelegate, public NativeViewportClient {
virtual void OnCreated() OVERRIDE {
}
- virtual void OnDestroyed() OVERRIDE {
+ virtual void OnDestroyed(const mojo::Callback<void()>& callback) OVERRIDE {
base::MessageLoop::current()->Quit();
+ callback.Run();
}
virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698