Index: chrome/browser/password_manager/simple_password_store_mac_unittest.cc |
diff --git a/chrome/browser/password_manager/simple_password_store_mac_unittest.cc b/chrome/browser/password_manager/simple_password_store_mac_unittest.cc |
index 517f5ce5796d66434e9aa06513b1ad471aa73353..4e82e0610e4247942ba82b8e2379a3f302aa2053 100644 |
--- a/chrome/browser/password_manager/simple_password_store_mac_unittest.cc |
+++ b/chrome/browser/password_manager/simple_password_store_mac_unittest.cc |
@@ -50,9 +50,12 @@ class SimplePasswordStoreMacTest : public testing::Test { |
FROM_HERE, |
base::Bind(&InitOnBackgroundThread, base::Unretained(login_db.get()))); |
store_ = new SimplePasswordStoreMac( |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
- file_task_runner, login_db.Pass()); |
- ASSERT_TRUE(store_->Init(syncer::SyncableService::StartSyncFlare())); |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), nullptr, |
+ scoped_ptr<password_manager::LoginDatabase>()); |
+ file_task_runner->PostTask( |
+ FROM_HERE, |
+ base::Bind(&SimplePasswordStoreMac::InitWithTaskRunner, store_, |
+ file_task_runner, base::Passed(&login_db))); |
// Make sure deferred initialization is finished. |
FinishAsyncProcessing(); |
} |