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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/autofill/core/common/autofill_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/common/password_autofill_util.h" 5 #include "components/autofill/core/common/password_autofill_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/autofill/core/common/autofill_switches.h" 8 #include "components/autofill/core/common/autofill_switches.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 11
12 // We ignore autocomplete='off' if the user has specified the command line 12 // We ignore autocomplete='off' unless the user has specified the command line
13 // feature to enable it. 13 // flag instructing otherwise.
14 bool ShouldIgnoreAutocompleteOffForPasswordFields() { 14 bool ShouldIgnoreAutocompleteOffForPasswordFields() {
15 return CommandLine::ForCurrentProcess()->HasSwitch( 15 return !CommandLine::ForCurrentProcess()->HasSwitch(
16 switches::kEnableIgnoreAutocompleteOff); 16 switches::kDisableIgnoreAutocompleteOff);
17 } 17 }
18 18
19 } // namespace autofill 19 } // namespace autofill
OLDNEW
« 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