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

Unified Diff: mojo/examples/sample_app/sample_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/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 {

Powered by Google App Engine
This is Rietveld 408576698