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

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

Issue 146023002: Password manager now ignores autocomplete='off' by default; user may specify a flag that says other… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak in unit test Created 6 years, 10 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 | « 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: components/autofill/core/common/password_autofill_util.cc
diff --git a/components/autofill/core/common/password_autofill_util.cc b/components/autofill/core/common/password_autofill_util.cc
index b1f5dbf02586951b7bca6be729bcbfe6d909079d..eb8c970ea8a49de536303b1d7003e2184ba4d17e 100644
--- a/components/autofill/core/common/password_autofill_util.cc
+++ b/components/autofill/core/common/password_autofill_util.cc
@@ -9,11 +9,11 @@
namespace autofill {
-// We ignore autocomplete='off' if the user has specified the command line
-// feature to enable it.
+// We ignore autocomplete='off' unless the user has specified the command line
+// flag instructing otherwise.
bool ShouldIgnoreAutocompleteOffForPasswordFields() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableIgnoreAutocompleteOff);
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableIgnoreAutocompleteOff);
}
} // namespace autofill
« no previous file with comments | « 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