| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index f2aa5315883825090258eb7db88d114c60d76017..4f3ced6725c656878e04eddc75d9058ab6dc6419 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -216,8 +216,9 @@ void TestingAutomationProvider::OnBrowserRemoved(const Browser* browser) {
|
| switches::kKeepAliveForTest)) {
|
| // If you change this, update Observer for chrome::SESSION_END
|
| // below.
|
| - MessageLoop::current()->PostTask(FROM_HERE,
|
| - NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider));
|
| + MessageLoop::current()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&TestingAutomationProvider::OnRemoveProvider, this));
|
| }
|
| }
|
|
|
| @@ -874,7 +875,7 @@ void TestingAutomationProvider::WindowSimulateClick(const IPC::Message& message,
|
| if (window_tracker_->ContainsHandle(handle)) {
|
| // TODO(phajdan.jr): This is flaky. We should wait for the final click.
|
| ui_controls::SendMouseMoveNotifyWhenDone(
|
| - click.x(), click.y(), NewRunnableFunction(&SendMouseClick, flags));
|
| + click.x(), click.y(), base::Bind(&SendMouseClick, flags));
|
| }
|
| }
|
|
|
| @@ -5539,8 +5540,8 @@ void TestingAutomationProvider::SendOSLevelKeyEventToTab(
|
| if (!ui_controls::SendKeyPressNotifyWhenDone(
|
| window, static_cast<ui::KeyboardCode>(keycode),
|
| control, shift, alt, meta,
|
| - NewRunnableMethod(this,
|
| - &TestingAutomationProvider::SendSuccessReply, reply_message))) {
|
| + base::Bind(&TestingAutomationProvider::SendSuccessReply, this,
|
| + reply_message))) {
|
| AutomationJSONReply(this, reply_message)
|
| .SendError("Could not send the native key event");
|
| }
|
|
|