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

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: 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
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..ee25aaea2e08183fab9581e83fe178b37047a69c 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::kDoNotIgnoreAutocompleteOff);
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698