1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/autofill/core/common/password_autofill_util.h"
7 #include "base/command_line.h"
8 #include "components/autofill/core/common/autofill_switches.h"
12 // We ignore autocomplete='off' if the user has specified the command line
13 // feature to enable it.
14 bool ShouldIgnoreAutocompleteOffForPasswordFields() {
15 return CommandLine::ForCurrentProcess()->HasSwitch(
16 switches::kEnableIgnoreAutocompleteOff);
19 } // namespace autofill