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

Unified Diff: components/password_manager/core/browser/psl_matching_helper.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: components/password_manager/core/browser/psl_matching_helper.cc
diff --git a/components/password_manager/core/browser/psl_matching_helper.cc b/components/password_manager/core/browser/psl_matching_helper.cc
index 484ca180c9dcedb7fd4927dab50857d201ce7b05..a3459a406b962a54873d14e615b935113ffe7ab9 100644
--- a/components/password_manager/core/browser/psl_matching_helper.cc
+++ b/components/password_manager/core/browser/psl_matching_helper.cc
@@ -7,7 +7,6 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/metrics/field_trial.h"
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/common/password_manager_switches.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
@@ -17,28 +16,15 @@ using autofill::PasswordForm;
namespace password_manager {
-#if !defined(OS_IOS)
-namespace {
-
-const char kPSLMatchingDesktopFieldTrialName[] = "PSLMatchingDesktop";
-const char kPSLMatchingDesktopFieldTrialDisabledGroupName[] = "Disabled";
-
-} // namespace
-#endif
-
-bool PSLMatchingHelper::psl_enabled_override_ = false;
-
-PSLMatchingHelper::PSLMatchingHelper() : psl_enabled_(DeterminePSLEnabled()) {}
-
-PSLMatchingHelper::~PSLMatchingHelper() {}
+PSLMatchingHelper::PSLMatchingHelper() {
+}
-bool PSLMatchingHelper::IsMatchingEnabled() const {
- return psl_enabled_override_ || psl_enabled_;
+PSLMatchingHelper::~PSLMatchingHelper() {
}
bool PSLMatchingHelper::ShouldPSLDomainMatchingApply(
const std::string& registry_controlled_domain) const {
- return IsMatchingEnabled() && registry_controlled_domain != "google.com";
+ return registry_controlled_domain != "google.com";
}
// static
@@ -64,21 +50,4 @@ std::string PSLMatchingHelper::GetRegistryControlledDomain(
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
}
-// static
-void PSLMatchingHelper::EnablePublicSuffixDomainMatchingForTesting() {
- psl_enabled_override_ = true;
-}
-
-// static
-bool PSLMatchingHelper::DeterminePSLEnabled() {
- bool enabled = true;
-#if !defined(OS_IOS)
- if (base::FieldTrialList::FindFullName(kPSLMatchingDesktopFieldTrialName) ==
- kPSLMatchingDesktopFieldTrialDisabledGroupName) {
- enabled = false;
- }
-#endif
- return enabled;
-}
-
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698