| Index: chrome/browser/automation/ui_controls_internal.cc
|
| diff --git a/chrome/browser/automation/ui_controls_internal.cc b/chrome/browser/automation/ui_controls_internal.cc
|
| index 25598e850797a69058afabd7f34caa97fd187814..8cb5ec3685e8ba14e21eb7562d084971989c48d4 100644
|
| --- a/chrome/browser/automation/ui_controls_internal.cc
|
| +++ b/chrome/browser/automation/ui_controls_internal.cc
|
| @@ -6,17 +6,11 @@
|
|
|
| namespace ui_controls {
|
|
|
| -ClickTask::ClickTask(MouseButton button, int state, Task* followup)
|
| - : button_(button), state_(state), followup_(followup) {
|
| -}
|
| -
|
| -ClickTask::~ClickTask() {}
|
| -
|
| -void ClickTask::Run() {
|
| - if (followup_)
|
| - SendMouseEventsNotifyWhenDone(button_, state_, followup_);
|
| +void ClickTask(MouseButton button, int state, const base::Closure& followup) {
|
| + if (!followup.is_null())
|
| + SendMouseEventsNotifyWhenDone(button, state, followup);
|
| else
|
| - SendMouseEvents(button_, state_);
|
| + SendMouseEvents(button, state);
|
| }
|
|
|
| } // ui_controls
|
|
|