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

Unified Diff: sky/viewer/content_handler_impl.cc

Issue 853303004: Add Application::RequestQuit() (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: commentary Created 5 years, 11 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
« no previous file with comments | « shell/external_application_listener_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/content_handler_impl.cc
diff --git a/sky/viewer/content_handler_impl.cc b/sky/viewer/content_handler_impl.cc
index 3bf26f52d74b8417a74f31c8c536aa3f14ed740d..d10a7824faf5d350b5cf69d78da441e26e3f9f5b 100644
--- a/sky/viewer/content_handler_impl.cc
+++ b/sky/viewer/content_handler_impl.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "mojo/public/cpp/application/connect.h"
+#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
#include "sky/viewer/document_view.h"
@@ -52,6 +53,10 @@ class SkyApplication : public mojo::Application {
}
}
+ void RequestQuit() override {
+ mojo::RunLoop::current()->Quit();
+ }
+
private:
void OnResponseReceived(
mojo::URLLoaderPtr loader,
« no previous file with comments | « shell/external_application_listener_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698