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

Unified Diff: mojo/services/tracing/tracing_app.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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 | « mojo/services/tracing/tracing_app.h ('k') | mojo/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/tracing_app.cc
diff --git a/mojo/services/tracing/tracing_app.cc b/mojo/services/tracing/tracing_app.cc
index 974ce0d6c38da69dc13d4a84c1b2557d171e8e7f..f7885eb75b6b20bce186ccbc844f1f46a7ec38d1 100644
--- a/mojo/services/tracing/tracing_app.cc
+++ b/mojo/services/tracing/tracing_app.cc
@@ -42,6 +42,11 @@ bool TracingApp::AcceptConnection(mojo::Connection* connection) {
return true;
}
+bool TracingApp::ShellConnectionLost() {
+ base::MessageLoop::current()->QuitWhenIdle();
+ return true;
+}
+
void TracingApp::Create(mojo::Connection* connection,
mojo::InterfaceRequest<TraceCollector> request) {
collector_binding_.Bind(std::move(request));
« no previous file with comments | « mojo/services/tracing/tracing_app.h ('k') | mojo/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698