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

Unified Diff: chrome/browser/password_manager/native_backend_gnome_x.cc

Issue 508143002: Remove Finch kill switch for PSL matching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: chrome/browser/password_manager/native_backend_gnome_x.cc
diff --git a/chrome/browser/password_manager/native_backend_gnome_x.cc b/chrome/browser/password_manager/native_backend_gnome_x.cc
index 5d288b9f591bf9aa1c685f972e5a813df4f067b4..a311ecee86a68ef6cd216172e5fdddfd707a6293 100644
--- a/chrome/browser/password_manager/native_backend_gnome_x.cc
+++ b/chrome/browser/password_manager/native_backend_gnome_x.cc
@@ -194,9 +194,12 @@ void ConvertFormList(GList* found,
}
}
if (lookup_form) {
+ const GURL signon_realm(lookup_form->signon_realm);
+ std::string registered_domain =
+ PSLMatchingHelper::GetRegistryControlledDomain(signon_realm);
UMA_HISTOGRAM_ENUMERATION(
"PasswordManager.PslDomainMatchTriggering",
- helper.IsMatchingEnabled()
+ helper.ShouldPSLDomainMatchingApply(registered_domain)
? psl_domain_match_metric
: PSLMatchingHelper::PSL_DOMAIN_MATCH_DISABLED,
nyquist 2014/08/27 18:15:14 This else-clause looks a bit off to me. It's not d
vabr (Chromium) 2014/09/22 13:32:31 There is no other disabling than not triggering, a
nyquist 2014/09/22 22:59:48 No, I think it would only be a name change. Up to
vabr (Chromium) 2014/09/23 08:31:50 I went with changing "disabled" to a more generic
PSLMatchingHelper::PSL_DOMAIN_MATCH_COUNT);

Powered by Google App Engine
This is Rietveld 408576698