Index: chrome/browser/sync/test/integration/passwords_helper.cc |
diff --git a/chrome/browser/sync/test/integration/passwords_helper.cc b/chrome/browser/sync/test/integration/passwords_helper.cc |
index f1e57151ccd294c8d1bdbb449c3187259d0024ae..5628e449e1e6daaf4f8f11dcf29b83572e7bf484 100644 |
--- a/chrome/browser/sync/test/integration/passwords_helper.cc |
+++ b/chrome/browser/sync/test/integration/passwords_helper.cc |
@@ -66,7 +66,7 @@ void AddLogin(PasswordStore* store, const PasswordForm& form) { |
ASSERT_TRUE(store); |
base::WaitableEvent wait_event(true, false); |
store->AddLogin(form); |
- store->ScheduleTask(NewRunnableFunction(&PasswordStoreCallback, &wait_event)); |
+ store->ScheduleTask(base::Bind(&PasswordStoreCallback, &wait_event)); |
wait_event.Wait(); |
} |
@@ -74,7 +74,7 @@ void UpdateLogin(PasswordStore* store, const PasswordForm& form) { |
ASSERT_TRUE(store); |
base::WaitableEvent wait_event(true, false); |
store->UpdateLogin(form); |
- store->ScheduleTask(NewRunnableFunction(&PasswordStoreCallback, &wait_event)); |
+ store->ScheduleTask(base::Bind(&PasswordStoreCallback, &wait_event)); |
wait_event.Wait(); |
} |
@@ -91,7 +91,7 @@ void RemoveLogin(PasswordStore* store, const PasswordForm& form) { |
ASSERT_TRUE(store); |
base::WaitableEvent wait_event(true, false); |
store->RemoveLogin(form); |
- store->ScheduleTask(NewRunnableFunction(&PasswordStoreCallback, &wait_event)); |
+ store->ScheduleTask(base::Bind(&PasswordStoreCallback, &wait_event)); |
wait_event.Wait(); |
} |