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. 4 5 #include "components/autofill/core/common/password_autofill_util.h" 6 7 #include "base/command_line.h" 8 #include "components/autofill/core/common/autofill_switches.h" 9 10 namespace autofill { 11 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); 17 } 18 19 } // namespace autofill 20