| Index: chrome/renderer/autofill/fake_content_password_manager_driver.h
|
| diff --git a/chrome/renderer/autofill/fake_content_password_manager_driver.h b/chrome/renderer/autofill/fake_content_password_manager_driver.h
|
| index 5de449187b142b591739aa7b4ac70f5c42da3fef..aea0c6d3c48e1b73f28dbdd88644162a1e012ef4 100644
|
| --- a/chrome/renderer/autofill/fake_content_password_manager_driver.h
|
| +++ b/chrome/renderer/autofill/fake_content_password_manager_driver.h
|
| @@ -126,10 +126,14 @@ class FakeContentPasswordManagerDriver
|
| called_presave_generated_password_ = false;
|
| }
|
|
|
| - int called_check_safe_browsing_reputation_cnt() {
|
| + int called_check_safe_browsing_reputation_cnt() const {
|
| return called_check_safe_browsing_reputation_cnt_;
|
| }
|
|
|
| + int called_show_manual_fallback_count() const {
|
| + return called_show_manual_fallback_count_;
|
| + }
|
| +
|
| private:
|
| // mojom::PasswordManagerDriver:
|
| void PasswordFormsParsed(
|
| @@ -170,6 +174,10 @@ class FakeContentPasswordManagerDriver
|
| void CheckSafeBrowsingReputation(const GURL& form_action,
|
| const GURL& frame_url) override;
|
|
|
| + void ShowManualFallbackForSaving(
|
| + const autofill::PasswordForm& password_form) override;
|
| + void HideManualFallbackForSaving() override;
|
| +
|
| // Records whether ShowPasswordSuggestions() gets called.
|
| bool called_show_pw_suggestions_ = false;
|
| // Records data received via ShowPasswordSuggestions() call.
|
| @@ -210,6 +218,10 @@ class FakeContentPasswordManagerDriver
|
| // Records number of times CheckSafeBrowsingReputation() gets called.
|
| int called_check_safe_browsing_reputation_cnt_ = 0;
|
|
|
| + // Records the number of request to show manual fallback for password saving.
|
| + // If it is zero, the fallback is not available.
|
| + int called_show_manual_fallback_count_ = 0;
|
| +
|
| mojo::BindingSet<autofill::mojom::PasswordManagerDriver> bindings_;
|
| };
|
|
|
|
|