OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/renderer/autofill/fake_content_password_manager_driver.h" | 5 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" |
6 | 6 |
7 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} | 7 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} |
8 | 8 |
9 FakeContentPasswordManagerDriver::~FakeContentPasswordManagerDriver() {} | 9 FakeContentPasswordManagerDriver::~FakeContentPasswordManagerDriver() {} |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 base::i18n::TextDirection text_direction, | 51 base::i18n::TextDirection text_direction, |
52 const base::string16& typed_username, | 52 const base::string16& typed_username, |
53 int options, | 53 int options, |
54 const gfx::RectF& bounds) { | 54 const gfx::RectF& bounds) { |
55 called_show_pw_suggestions_ = true; | 55 called_show_pw_suggestions_ = true; |
56 show_pw_suggestions_key_ = key; | 56 show_pw_suggestions_key_ = key; |
57 show_pw_suggestions_username_ = typed_username; | 57 show_pw_suggestions_username_ = typed_username; |
58 show_pw_suggestions_options_ = options; | 58 show_pw_suggestions_options_ = options; |
59 } | 59 } |
60 | 60 |
| 61 void FakeContentPasswordManagerDriver::ShowNotSecureWarning( |
| 62 base::i18n::TextDirection text_direction, |
| 63 const gfx::RectF& bounds) { |
| 64 called_show_not_secure_warning_ = true; |
| 65 } |
| 66 |
61 void FakeContentPasswordManagerDriver::PasswordAutofillAgentConstructed() { | 67 void FakeContentPasswordManagerDriver::PasswordAutofillAgentConstructed() { |
62 called_agent_constructed_ = true; | 68 called_agent_constructed_ = true; |
63 } | 69 } |
64 | 70 |
65 void FakeContentPasswordManagerDriver::RecordSavePasswordProgress( | 71 void FakeContentPasswordManagerDriver::RecordSavePasswordProgress( |
66 const std::string& log) { | 72 const std::string& log) { |
67 called_record_save_progress_ = true; | 73 called_record_save_progress_ = true; |
68 } | 74 } |
69 | 75 |
70 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( | 76 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( |
71 const autofill::PasswordForm& password_form, | 77 const autofill::PasswordForm& password_form, |
72 const base::string16& generation_field) { | 78 const base::string16& generation_field) { |
73 called_save_generation_field_ = true; | 79 called_save_generation_field_ = true; |
74 save_generation_field_ = generation_field; | 80 save_generation_field_ = generation_field; |
75 } | 81 } |
OLD | NEW |