password_autofill_util.cc revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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 10namespace autofill { 11 12// We ignore autocomplete='off' unless the user has specified the command line 13// flag instructing otherwise. 14bool ShouldIgnoreAutocompleteOffForPasswordFields() { 15 return !CommandLine::ForCurrentProcess()->HasSwitch( 16 switches::kDisableIgnoreAutocompleteOff); 17} 18 19} // namespace autofill 20