| Index: chrome/browser/password_manager/password_store_factory.cc
|
| diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
|
| index 1db6e65eb69ae2b99b9cf7dbd9cfde47303793af..a21a56a5ab2f9a117c6f019b09a6b7dd04cfda35 100644
|
| --- a/chrome/browser/password_manager/password_store_factory.cc
|
| +++ b/chrome/browser/password_manager/password_store_factory.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/command_line.h"
|
| #include "base/environment.h"
|
| #include "base/prefs/pref_service.h"
|
| +#include "chrome/browser/password_manager/sync_metrics.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/sync/glue/sync_start_util.h"
|
| #include "chrome/browser/webdata/web_data_service.h"
|
| @@ -225,8 +226,14 @@ KeyedService* PasswordStoreFactory::BuildServiceInstanceFor(
|
| #else
|
| NOTIMPLEMENTED();
|
| #endif
|
| + password_manager::SyncState sync_state;
|
| + std::string sync_username;
|
| + password_manager_sync_metrics::GetSyncUsernameAndState(profile,
|
| + &sync_username,
|
| + &sync_state);
|
| if (!ps || !ps->Init(
|
| - sync_start_util::GetFlareForSyncableService(profile->GetPath()))) {
|
| + sync_start_util::GetFlareForSyncableService(profile->GetPath()),
|
| + sync_username, sync_state)) {
|
| NOTREACHED() << "Could not initialize password manager.";
|
| return NULL;
|
| }
|
|
|