| Index: mojo/examples/embedded_app/embedded_app.cc
|
| diff --git a/mojo/examples/embedded_app/embedded_app.cc b/mojo/examples/embedded_app/embedded_app.cc
|
| index 7ee4777f79dd85d44f494d76d3503524c85472b7..631d67c734c1f70cbead7089a647493b445d7073 100644
|
| --- a/mojo/examples/embedded_app/embedded_app.cc
|
| +++ b/mojo/examples/embedded_app/embedded_app.cc
|
| @@ -5,6 +5,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| #include "base/logging.h"
|
| +#include "base/message_loop/message_loop.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| #include "mojo/public/cpp/application/application_delegate.h"
|
| @@ -97,6 +98,9 @@ class EmbeddedApp : public ApplicationDelegate,
|
| roots_[root->id()] = root;
|
| ProcessPendingNodeColor(root->id());
|
| }
|
| + virtual void OnViewManagerDisconnected(ViewManager* view_manager) OVERRIDE {
|
| + base::MessageLoop::current()->Quit();
|
| + }
|
|
|
| // Overridden from ViewObserver:
|
| virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE {
|
|
|