| OLD | NEW |
| 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_generation_util.h" | 5 #include "components/autofill/core/common/password_generation_util.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "components/autofill/core/common/autofill_switches.h" | 10 #include "components/autofill/core/common/autofill_switches.h" |
| 11 | 11 |
| 12 namespace autofill { | 12 namespace autofill { |
| 13 namespace password_generation { | 13 namespace password_generation { |
| 14 | 14 |
| 15 PasswordGenerationActions::PasswordGenerationActions() | 15 PasswordGenerationActions::PasswordGenerationActions() |
| 16 : learn_more_visited(false), | 16 : learn_more_visited(false), |
| 17 password_accepted(false), | 17 password_accepted(false), |
| 18 password_edited(false), | 18 password_edited(false), |
| 19 password_regenerated(false) { | 19 password_regenerated(false) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 return false; | 53 return false; |
| 54 | 54 |
| 55 if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) | 55 if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) |
| 56 return true; | 56 return true; |
| 57 | 57 |
| 58 return group_name != "Disabled"; | 58 return group_name != "Disabled"; |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace password_generation | 61 } // namespace password_generation |
| 62 } // namespace autofill | 62 } // namespace autofill |
| OLD | NEW |