| Index: mojo/shell/tests/connect/connect_test_app.cc
|
| diff --git a/mojo/shell/tests/connect/connect_test_app.cc b/mojo/shell/tests/connect/connect_test_app.cc
|
| index 5081c8bd0464c8d0ce1521a3821c3319551c3967..96c9b1de096e8afb211d0d2cdc8aa038a85539c5 100644
|
| --- a/mojo/shell/tests/connect/connect_test_app.cc
|
| +++ b/mojo/shell/tests/connect/connect_test_app.cc
|
| @@ -110,7 +110,13 @@ class ConnectTestApp : public ShellClient,
|
| test_service->GetTitle(
|
| base::Bind(&ConnectTestApp::OnGotTitle, base::Unretained(this),
|
| callback, &run_loop));
|
| - run_loop.Run();
|
| + {
|
| + // This message is dispatched as a task on the same run loop, so we need
|
| + // to allow nesting in order to pump additional signals.
|
| + base::MessageLoop::ScopedNestableTaskAllower allow(
|
| + base::MessageLoop::current());
|
| + run_loop.Run();
|
| + }
|
| }
|
|
|
| // test::mojom::BlockedInterface:
|
|
|