| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 61 void FakeContentPasswordManagerDriver::ShowNotSecureWarning( |
| 62 base::i18n::TextDirection text_direction, | 62 base::i18n::TextDirection text_direction, |
| 63 const gfx::RectF& bounds) { | 63 const gfx::RectF& bounds) { |
| 64 called_show_not_secure_warning_ = true; | 64 called_show_not_secure_warning_ = true; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void FakeContentPasswordManagerDriver::PasswordAutofillAgentConstructed() { | |
| 68 called_agent_constructed_ = true; | |
| 69 } | |
| 70 | |
| 71 void FakeContentPasswordManagerDriver::RecordSavePasswordProgress( | 67 void FakeContentPasswordManagerDriver::RecordSavePasswordProgress( |
| 72 const std::string& log) { | 68 const std::string& log) { |
| 73 called_record_save_progress_ = true; | 69 called_record_save_progress_ = true; |
| 74 } | 70 } |
| 75 | 71 |
| 76 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( | 72 void FakeContentPasswordManagerDriver::SaveGenerationFieldDetectedByClassifier( |
| 77 const autofill::PasswordForm& password_form, | 73 const autofill::PasswordForm& password_form, |
| 78 const base::string16& generation_field) { | 74 const base::string16& generation_field) { |
| 79 called_save_generation_field_ = true; | 75 called_save_generation_field_ = true; |
| 80 save_generation_field_ = generation_field; | 76 save_generation_field_ = generation_field; |
| 81 } | 77 } |
| OLD | NEW |