Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: components/safe_browsing/password_protection/password_protection_request.cc

Issue 2912383004: Fill is_chrome_signin_password field in the password entry pings. (Closed)
Patch Set: address nparker's comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0f74a1eebb88878ad158cdf0eb0d0ca9049bd7da..245dcf9289f04df15f439b4fd0126be3185897ad 100644
--- a/components/safe_browsing/password_protection/password_protection_request.cc
+++ b/components/safe_browsing/password_protection/password_protection_request.cc
@@ -7,12 +7,14 @@
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
+#include "components/password_manager/core/browser/password_reuse_detector.h"
#include "content/public/browser/web_contents.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/base/url_util.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
+#include "url/origin.h"
using content::BrowserThread;
using content::WebContents;
@@ -124,7 +126,10 @@ void PasswordProtectionRequest::FillRequestProto() {
break;
}
case LoginReputationClientRequest::PASSWORD_REUSE_EVENT: {
- // TODO(jialiul): Fill more password reuse related information when ready.
+ LoginReputationClientRequest::PasswordReuseEvent* reuse_event =
+ request_proto_->mutable_password_reuse_event();
+ reuse_event->set_is_chrome_signin_password(
+ saved_domain_ == std::string(password_manager::kSyncPasswordDomain));
break;
}
default:

Powered by Google App Engine
This is Rietveld 408576698