| Index: chrome/browser/automation/ui_controls_win.cc
|
| diff --git a/chrome/browser/automation/ui_controls_win.cc b/chrome/browser/automation/ui_controls_win.cc
|
| index 5d2c873157d4cd9f4e078ab5974d471957e97097..744928f37e649430a019981c959c4be8254b321a 100644
|
| --- a/chrome/browser/automation/ui_controls_win.cc
|
| +++ b/chrome/browser/automation/ui_controls_win.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/automation/ui_controls.h"
|
|
|
| #include "base/callback.h"
|
| +#include "base/message_loop.h"
|
| #include "chrome/browser/automation/ui_controls_internal.h"
|
| #include "ui/gfx/point.h"
|
| #include "ui/views/view.h"
|
| @@ -65,4 +66,9 @@ void MoveMouseToCenterAndPress(views::View* view,
|
| SendMouseEventsNotifyWhenDone(button, state, task);
|
| }
|
|
|
| +void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) {
|
| + // On windows, posting UI events is synchronous so just post the closure.
|
| + MessageLoopForUI::current()->PostTask(FROM_HERE, closure);
|
| +}
|
| +
|
| } // ui_controls
|
|
|