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

Unified Diff: chrome/renderer/autofill/fake_content_password_manager_driver.h

Issue 2604453003: Show Form-Not-Secure warning on page load (Closed)
Patch Set: meacer, jochen comments Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/autofill/DEPS ('k') | chrome/renderer/autofill/fake_content_password_manager_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f7314ba7c31ea9506a1e5b07a446fad3ab59116b..4388ecd582b52d86e2d1156391a3ff814e4d51fc 100644
--- a/chrome/renderer/autofill/fake_content_password_manager_driver.h
+++ b/chrome/renderer/autofill/fake_content_password_manager_driver.h
@@ -44,6 +44,10 @@ class FakeContentPasswordManagerDriver
show_pw_suggestions_options_ = -1;
}
+ bool called_show_not_secure_warning() const {
+ return called_show_not_secure_warning_;
+ }
+
bool called_password_form_submitted() const {
return called_password_form_submitted_;
}
@@ -135,6 +139,9 @@ class FakeContentPasswordManagerDriver
int options,
const gfx::RectF& bounds) override;
+ void ShowNotSecureWarning(base::i18n::TextDirection text_direction,
+ const gfx::RectF& bounds) override;
+
void PasswordAutofillAgentConstructed() override;
void RecordSavePasswordProgress(const std::string& log) override;
@@ -149,6 +156,8 @@ class FakeContentPasswordManagerDriver
int show_pw_suggestions_key_ = -1;
base::Optional<base::string16> show_pw_suggestions_username_;
int show_pw_suggestions_options_ = -1;
+ // Records whether ShowNotSecureWarning() gets called.
+ bool called_show_not_secure_warning_ = false;
// Records whether PasswordFormSubmitted() gets called.
bool called_password_form_submitted_ = false;
// Records data received via PasswordFormSubmitted() call.
« no previous file with comments | « chrome/renderer/autofill/DEPS ('k') | chrome/renderer/autofill/fake_content_password_manager_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698