Chromium Code Reviews| Index: components/safe_browsing/password_protection/password_protection_request.cc |
| diff --git a/components/safe_browsing/password_protection/password_protection_request.cc b/components/safe_browsing/password_protection/password_protection_request.cc |
| index 552def6263195cd341bf0648963be43e253df740..99835fa786c36e3ed543cf5b590adb43f6c756ee 100644 |
| --- a/components/safe_browsing/password_protection/password_protection_request.cc |
| +++ b/components/safe_browsing/password_protection/password_protection_request.cc |
| @@ -148,6 +148,16 @@ void PasswordProtectionRequest::FillRequestProto() { |
| request_proto_->mutable_password_reuse_event(); |
| reuse_event->set_is_chrome_signin_password( |
| saved_domain_ == std::string(password_manager::kSyncPasswordDomain)); |
| + if (reuse_event->is_chrome_signin_password()) { |
| + reuse_event->set_sync_account_type( |
| + password_protection_service_->GetSyncAccountType()); |
| + UMA_HISTOGRAM_ENUMERATION( |
| + "PasswordProtection.PasswordReuseSyncAccountType", |
| + reuse_event->sync_account_type(), |
| + LoginReputationClientRequest::PasswordReuseEvent:: |
| + SyncAccountType_MAX + |
| + 1); |
|
lpz
2017/06/27 18:50:10
nit: move to prev line?
Jialiu Lin
2017/06/27 20:58:33
oops, git cl format has weird taste.
|
| + } |
| break; |
| } |
| default: |