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

Unified Diff: mojo/shell/background/tests/test_service.cc

Issue 1791663002: Allow Catalogs to be constructed per-user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@49catalog
Patch Set: . Created 4 years, 9 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/catalog/owner.cc ('k') | mojo/shell/runner/host/native_application_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/tests/test_service.cc
diff --git a/mojo/shell/background/tests/test_service.cc b/mojo/shell/background/tests/test_service.cc
index 8b68c59aebcf00ded32de33e2f01291536e9aace..d030a814340064955baf1723ebfd40f547807fb2 100644
--- a/mojo/shell/background/tests/test_service.cc
+++ b/mojo/shell/background/tests/test_service.cc
@@ -25,6 +25,9 @@ class TestClient : public ShellClient,
connection->AddInterface(this);
return true;
}
+ void ShellConnectionLost() override {
+ base::MessageLoop::current()->QuitWhenIdle();
+ }
// InterfaceFactory<mojom::TestService>:
void Create(Connection* connection,
@@ -33,7 +36,9 @@ class TestClient : public ShellClient,
}
// mojom::TestService
- void Test(const TestCallback& callback) override { callback.Run(); }
+ void Test(const TestCallback& callback) override {
+ callback.Run();
+ }
BindingSet<mojom::TestService> bindings_;
« no previous file with comments | « mojo/services/catalog/owner.cc ('k') | mojo/shell/runner/host/native_application_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698