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

Unified Diff: trunk/src/components/autofill/core/common/password_autofill_util.cc

Issue 130183003: Revert 248117 "Password manager now ignores autocomplete='off' b..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « trunk/src/components/autofill/core/common/autofill_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/components/autofill/core/common/password_autofill_util.cc
===================================================================
--- trunk/src/components/autofill/core/common/password_autofill_util.cc (revision 248129)
+++ trunk/src/components/autofill/core/common/password_autofill_util.cc (working copy)
@@ -9,11 +9,11 @@
namespace autofill {
-// We ignore autocomplete='off' unless the user has specified the command line
-// flag instructing otherwise.
+// We ignore autocomplete='off' if the user has specified the command line
+// feature to enable it.
bool ShouldIgnoreAutocompleteOffForPasswordFields() {
- return !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableIgnoreAutocompleteOff);
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableIgnoreAutocompleteOff);
}
} // namespace autofill
« no previous file with comments | « trunk/src/components/autofill/core/common/autofill_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698