| Index: mojo/examples/nesting_app/nesting_app.cc
|
| diff --git a/mojo/examples/nesting_app/nesting_app.cc b/mojo/examples/nesting_app/nesting_app.cc
|
| index f0b67633f69e2a28e6629a51c6ff353ac132c487..9b488d280fa25b624ab10bfba4f31e6d7de12e54 100644
|
| --- a/mojo/examples/nesting_app/nesting_app.cc
|
| +++ b/mojo/examples/nesting_app/nesting_app.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| +#include "base/message_loop/message_loop.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "mojo/examples/window_manager/window_manager.mojom.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| @@ -94,6 +95,9 @@ class NestingApp : public ApplicationDelegate,
|
|
|
| NavigateChild();
|
| }
|
| + virtual void OnViewManagerDisconnected(ViewManager* view_manager) OVERRIDE {
|
| + base::MessageLoop::current()->Quit();
|
| + }
|
|
|
| // Overridden from ViewObserver:
|
| virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE {
|
|
|