| Index: chrome/browser/automation/ui_controls_aurawin.cc
|
| ===================================================================
|
| --- chrome/browser/automation/ui_controls_aurawin.cc (revision 113187)
|
| +++ chrome/browser/automation/ui_controls_aurawin.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/automation/ui_controls.h"
|
|
|
| #include "base/logging.h"
|
| +#include "base/message_loop.h"
|
| #include "chrome/browser/automation/ui_controls_internal.h"
|
| #include "ui/aura/desktop.h"
|
| #include "ui/views/view.h"
|
| @@ -69,4 +70,9 @@
|
| SendMouseEventsNotifyWhenDone(button, state, task);
|
| }
|
|
|
| +void RunClosureAfterAllPendingUIEvents(const base::Closure& task) {
|
| + // On windows, posting UI events is synchronous so just post the closure.
|
| + MessageLoopForUI::current()->PostTask(FROM_HERE, task);
|
| +}
|
| +
|
| } // namespace ui_controls
|
|
|