| Index: chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| index 50dfed69f04c7c5c5ce0c6ce5a7182e43a0e713d..bf854099f10c15be987f518bf8aefcdbcfa9a77f 100644
|
| --- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| +#include "base/bind.h"
|
| #include "base/location.h"
|
| #include "base/synchronization/waitable_event.h"
|
| #include "base/task.h"
|
| @@ -187,9 +188,9 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
|
|
|
| void FlushLastDBTask() {
|
| base::WaitableEvent done(false, false);
|
| - BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
|
| - NewRunnableFunction(&ProfileSyncServicePasswordTest::SignalEvent,
|
| - &done));
|
| + BrowserThread::PostTask(
|
| + BrowserThread::DB, FROM_HERE,
|
| + base::Bind(&ProfileSyncServicePasswordTest::SignalEvent, &done));
|
| done.TimedWait(base::TimeDelta::FromMilliseconds(
|
| TestTimeouts::action_timeout_ms()));
|
| }
|
|
|