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

Unified Diff: components/password_manager/core/browser/password_reuse_detector.cc

Issue 2912383004: Fill is_chrome_signin_password field in the password entry pings. (Closed)
Patch Set: Fix deps Created 3 years, 7 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/password_manager/core/browser/password_reuse_detector.cc
diff --git a/components/password_manager/core/browser/password_reuse_detector.cc b/components/password_manager/core/browser/password_reuse_detector.cc
index a06e94eb1838d049822ad0a581cecc05099f8d86..0af86ee45fb4ce49d054d8b5989680f4a1b6c5c3 100644
--- a/components/password_manager/core/browser/password_reuse_detector.cc
+++ b/components/password_manager/core/browser/password_reuse_detector.cc
@@ -12,6 +12,7 @@
#include "components/password_manager/core/browser/psl_matching_helper.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
#include "components/prefs/pref_service.h"
+#include "components/safe_browsing/common/safebrowsing_constants.h"
#include "google_apis/gaia/gaia_auth_util.h"
#include "google_apis/gaia/gaia_urls.h"
#include "url/origin.h"
@@ -94,7 +95,8 @@ bool PasswordReuseDetector::CheckSyncPasswordReuse(
base::StringPiece16 input_suffix(input.c_str() + i, input.size() - i);
if (password_manager_util::Calculate37BitsOfSHA256Hash(input_suffix) ==
sync_password_hash_.value()) {
- consumer->OnReuseFound(input_suffix.as_string(), gaia_origin.host(), 1,
+ consumer->OnReuseFound(input_suffix.as_string(),
+ std::string(safe_browsing::kSyncPasswordDomain), 1,
0);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698