| Index: chrome/browser/profile.cc
|
| ===================================================================
|
| --- chrome/browser/profile.cc (revision 19040)
|
| +++ chrome/browser/profile.cc (working copy)
|
| @@ -102,6 +102,7 @@
|
| #include "chrome/browser/password_manager/password_store_win.h"
|
| #elif defined(OS_MACOSX)
|
| #include "chrome/browser/keychain_mac.h"
|
| +#include "chrome/browser/password_manager/login_database_mac.h"
|
| #include "chrome/browser/password_manager/password_store_mac.h"
|
| #endif
|
|
|
| @@ -840,7 +841,15 @@
|
| #elif defined(OS_WIN)
|
| ps = new PasswordStoreWin(GetWebDataService(Profile::IMPLICIT_ACCESS));
|
| #elif defined(OS_MACOSX)
|
| - ps = new PasswordStoreMac(new MacKeychain());
|
| + FilePath login_db_file_path = GetPath();
|
| + login_db_file_path = login_db_file_path.Append(chrome::kLoginDataFileName);
|
| + LoginDatabaseMac* login_db = new LoginDatabaseMac();
|
| + if (!login_db->Init(login_db_file_path)) {
|
| + LOG(ERROR) << "Could not initialize login database.";
|
| + delete login_db;
|
| + return;
|
| + }
|
| + ps = new PasswordStoreMac(new MacKeychain(), login_db);
|
| #else
|
| NOTIMPLEMENTED();
|
| #endif
|
|
|