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

Unified Diff: ui/aura/desktop/desktop_dispatcher_client.cc

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: phajdan feedback Created 8 years, 6 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 | « content/test/test_navigation_observer.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop/desktop_dispatcher_client.cc
diff --git a/ui/aura/desktop/desktop_dispatcher_client.cc b/ui/aura/desktop/desktop_dispatcher_client.cc
index d9a33cfdf1e08b3efddf0cdce0530cdb60dd28b3..0228746748c82e62abbe8b84bb23e75b386ccda5 100644
--- a/ui/aura/desktop/desktop_dispatcher_client.cc
+++ b/ui/aura/desktop/desktop_dispatcher_client.cc
@@ -4,6 +4,8 @@
#include "ui/aura/desktop/desktop_dispatcher_client.h"
+#include "base/run_loop.h"
+
namespace aura {
DesktopDispatcherClient::DesktopDispatcherClient() {}
@@ -24,7 +26,8 @@ void DesktopDispatcherClient::RunWithDispatcher(
// DefaultAcceleratorDispatcher dispatcher(nested_dispatcher,
// associated_window);
- loop->RunWithDispatcher(nested_dispatcher);
+ base::RunLoop run_loop(nested_dispatcher);
+ run_loop.Run();
loop->SetNestableTasksAllowed(did_allow_task_nesting);
}
« no previous file with comments | « content/test/test_navigation_observer.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698