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

Unified Diff: mojo/shell/tests/connect/connect_test_app.cc

Issue 1759783003: [mojo-bindings] Use Watch API instead of MessagePumpMojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix components_unittests EDK deps 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/shell/public/cpp/lib/application_runner.cc ('k') | url/mojo/url_gurl_struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « mojo/shell/public/cpp/lib/application_runner.cc ('k') | url/mojo/url_gurl_struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698