| Index: components/password_manager/core/browser/password_manager.cc
|
| diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc
|
| index 82394596e1967870df333d2e30df3f35fc5c7e27..ee906264ef5478faa6cb421fb17e80a981d13654 100644
|
| --- a/components/password_manager/core/browser/password_manager.cc
|
| +++ b/components/password_manager/core/browser/password_manager.cc
|
| @@ -41,7 +41,8 @@ typedef autofill::SavePasswordProgressLogger Logger;
|
| // that this is only ever called from a single thread in order to
|
| // avoid needing to lock (a static boolean flag is then sufficient to
|
| // guarantee running only once).
|
| -void ReportMetrics(bool password_manager_enabled) {
|
| +void ReportMetrics(bool password_manager_enabled,
|
| + PasswordManagerClient* client) {
|
| static base::PlatformThreadId initial_thread_id =
|
| base::PlatformThread::CurrentId();
|
| DCHECK(initial_thread_id == base::PlatformThread::CurrentId());
|
| @@ -51,6 +52,8 @@ void ReportMetrics(bool password_manager_enabled) {
|
| return;
|
| ran_once = true;
|
|
|
| + PasswordStore* store = client->GetPasswordStore();
|
| + store->ReportMetrics(client);
|
| UMA_HISTOGRAM_BOOLEAN("PasswordManager.Enabled", password_manager_enabled);
|
| }
|
|
|
| @@ -112,7 +115,7 @@ PasswordManager::PasswordManager(PasswordManagerClient* client)
|
| saving_passwords_enabled_.Init(prefs::kPasswordManagerSavingEnabled,
|
| client_->GetPrefs());
|
|
|
| - ReportMetrics(*saving_passwords_enabled_);
|
| + ReportMetrics(*saving_passwords_enabled_, client_);
|
| }
|
|
|
| PasswordManager::~PasswordManager() {
|
|
|