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

Unified Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 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/autofill/content/renderer/form_autofill_util.cc
diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc
index 907342b4bda27362d8dd13ad634883645c4e8740..69ab4c9eb31c8407221dd0650864ac7b18411001 100644
--- a/components/autofill/content/renderer/form_autofill_util.cc
+++ b/components/autofill/content/renderer/form_autofill_util.cc
@@ -87,18 +87,9 @@ bool IsAutofillableElement(const WebFormControlElement& element) {
return IsAutofillableInputElement(input_element) || IsSelectElement(element);
}
-bool IsAutocheckoutEnabled() {
- return base::FieldTrialList::FindFullName("Autocheckout") == "Yes" ||
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalFormFilling);
-}
-
// Check whether the given field satisfies the REQUIRE_AUTOCOMPLETE requirement.
-// When Autocheckout is enabled, this requirement is enforced in the browser
-// process rather than in the renderer process, and hence all fields are
-// considered to satisfy this requirement.
bool SatisfiesRequireAutocomplete(const WebInputElement& input_element) {
- return input_element.autoComplete() || IsAutocheckoutEnabled();
+ return input_element.autoComplete();
}
// Appends |suffix| to |prefix| so that any intermediary whitespace is collapsed

Powered by Google App Engine
This is Rietveld 408576698