| 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..997ba9e3d2f8515e3117983ba88e49031c799d0e 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,11 @@ KeyedService* PasswordStoreFactory::BuildServiceInstanceFor(
|
| #else
|
| NOTIMPLEMENTED();
|
| #endif
|
| + std::string sync_username =
|
| + password_manager_sync_metrics::GetPasswordSyncUsername(profile);
|
| if (!ps || !ps->Init(
|
| - sync_start_util::GetFlareForSyncableService(profile->GetPath()))) {
|
| + sync_start_util::GetFlareForSyncableService(profile->GetPath()),
|
| + sync_username)) {
|
| NOTREACHED() << "Could not initialize password manager.";
|
| return NULL;
|
| }
|
|
|