summaryrefslogtreecommitdiffstats
path: root/mojo/shell/background
diff options
context:
space:
mode:
authorben <ben@chromium.org>2016-03-14 15:48:48 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-14 22:50:25 +0000
commit1693cacfdda556be0d56381104055f12829b6772 (patch)
tree413c145794603a1b624e3e214890c4ae397dbcfd /mojo/shell/background
parentf755705a429d313d57c012895adb033aba5c4529 (diff)
downloadchromium_src-1693cacfdda556be0d56381104055f12829b6772.zip
chromium_src-1693cacfdda556be0d56381104055f12829b6772.tar.gz
chromium_src-1693cacfdda556be0d56381104055f12829b6772.tar.bz2
Allow Catalogs to be constructed per-user
BUG= Review URL: https://codereview.chromium.org/1791663002 Cr-Commit-Position: refs/heads/master@{#381099}
Diffstat (limited to 'mojo/shell/background')
-rw-r--r--mojo/shell/background/tests/test_service.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/mojo/shell/background/tests/test_service.cc b/mojo/shell/background/tests/test_service.cc
index 8b68c59..d030a81 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_;