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

Unified Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 2035143002: Basic implementation of showing password fill dialog on page load (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix iOS compile Created 4 years, 6 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
Index: components/password_manager/content/browser/content_password_manager_driver.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver.cc b/components/password_manager/content/browser/content_password_manager_driver.cc
index 38129bf2a79faa3c65ba99cb36afa3eae93c6e5b..c53e176a546787f10adde0c659cd0e12b90604e2 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
@@ -105,6 +105,15 @@ void ContentPasswordManagerDriver::PreviewSuggestion(
username, password));
}
+void ContentPasswordManagerDriver::ShowInitialPasswordAccountSuggestions(
+ const autofill::PasswordFormFillData& form_data) {
+ const int key = next_free_key_++;
+ password_autofill_manager_.OnAddPasswordFormMapping(key, form_data);
+ render_frame_host_->Send(
+ new AutofillMsg_ShowInitialPasswordAccountSuggestions(
+ render_frame_host_->GetRoutingID(), key, form_data));
+}
+
void ContentPasswordManagerDriver::ClearPreviewedForm() {
content::RenderFrameHost* host = render_frame_host_;
host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));

Powered by Google App Engine
This is Rietveld 408576698