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

Unified Diff: chrome/renderer/autofill/autofill_agent.cc

Issue 9600038: Add Password Autofill Manager to New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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: chrome/renderer/autofill/autofill_agent.cc
diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc
index 54731fe97bba7e33cd90ba88d4505ed4c0fc0f72..ef807ace7cf6127f3e2cfc2f7210aa779194e511 100644
--- a/chrome/renderer/autofill/autofill_agent.cc
+++ b/chrome/renderer/autofill/autofill_agent.cc
@@ -86,6 +86,8 @@ bool AutofillAgent::OnMessageReceived(const IPC::Message& message) {
OnClearPreviewedForm)
IPC_MESSAGE_HANDLER(AutofillMsg_SetNodeText,
OnSetNodeText)
+ IPC_MESSAGE_HANDLER(AutofillMsg_PasswordAcceptAutofillSuggestion,
+ OnPasswordAcceptAutofillSuggestion)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -398,6 +400,12 @@ void AutofillAgent::OnSetNodeText(const string16& value) {
SetNodeText(value, &autofill_query_element_);
}
+void AutofillAgent::OnPasswordAcceptAutofillSuggestion(const string16& value) {
+ password_autofill_manager_->DidAcceptAutofillSuggestion(
+ autofill_query_element_,
+ value);
Ilya Sherman 2012/03/15 18:27:41 nit: Can we DCHECK that this returns true? (Commo
csharp 2012/03/16 20:21:12 Done.
+}
+
void AutofillAgent::ShowSuggestions(const WebInputElement& element,
bool autofill_on_empty_values,
bool requires_caret_at_end,

Powered by Google App Engine
This is Rietveld 408576698