diff options
author | sky <sky@chromium.org> | 2016-03-22 14:44:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-22 21:45:57 +0000 |
commit | 340545a9d2c2bf94d93421bbb6bfa40596ae4523 (patch) | |
tree | 7e13a15630e87d0c8c0bd19a2bacd1062eebdbbf /mojo/shell/background/tests | |
parent | 56d49295ef5c22d1fbc71d491494944cf1709bb3 (diff) | |
download | chromium_src-340545a9d2c2bf94d93421bbb6bfa40596ae4523.zip chromium_src-340545a9d2c2bf94d93421bbb6bfa40596ae4523.tar.gz chromium_src-340545a9d2c2bf94d93421bbb6bfa40596ae4523.tar.bz2 |
Quit the message loop by default in ShellConnectionLost when ApplicationRunner is used
This was originally at https://codereview.chromium.org/1814223002/ , but Ben is out and
I need this for tests, so I'm taking over.
BUG=none
TEST=covered by tests
TBR=ben@chromium.org
R=ben@chromium.org
Committed: https://crrev.com/a50f9840749052fbdec087a304548217cc6fd00b
Cr-Commit-Position: refs/heads/master@{#382389}
Review URL: https://codereview.chromium.org/1819063002
Cr-Commit-Position: refs/heads/master@{#382688}
Diffstat (limited to 'mojo/shell/background/tests')
-rw-r--r-- | mojo/shell/background/tests/test_service.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mojo/shell/background/tests/test_service.cc b/mojo/shell/background/tests/test_service.cc index d030a81..e69640d 100644 --- a/mojo/shell/background/tests/test_service.cc +++ b/mojo/shell/background/tests/test_service.cc @@ -25,8 +25,8 @@ class TestClient : public ShellClient, connection->AddInterface(this); return true; } - void ShellConnectionLost() override { - base::MessageLoop::current()->QuitWhenIdle(); + bool ShellConnectionLost() override { + return true; } // InterfaceFactory<mojom::TestService>: |