| Index: mojo/examples/sample_app/sample_app.cc
|
| diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc
|
| index c5a57abe9644cb2d4c119151f690861a5f1b7609..cfc9ef7b45ee3aec3dc743694fcd77671ec03229 100644
|
| --- a/mojo/examples/sample_app/sample_app.cc
|
| +++ b/mojo/examples/sample_app/sample_app.cc
|
| @@ -48,8 +48,10 @@ class SampleApp : public ApplicationDelegate, public NativeViewportClient {
|
| virtual void OnCreated() MOJO_OVERRIDE {
|
| }
|
|
|
| - virtual void OnDestroyed() MOJO_OVERRIDE {
|
| + virtual void OnDestroyed(
|
| + const mojo::Callback<void()>& callback) MOJO_OVERRIDE {
|
| RunLoop::current()->Quit();
|
| + callback.Run();
|
| }
|
|
|
| virtual void OnBoundsChanged(RectPtr bounds) MOJO_OVERRIDE {
|
|
|