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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test and changed sending message Created 5 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: 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 80b53b29e183305fa65a051b591d99433db9811e..22d34e9c81fccddc98fd2f1c15aeb9a0be0beee0 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
@@ -6,6 +6,7 @@
#include "components/autofill/content/common/autofill_messages.h"
#include "components/autofill/core/common/form_data.h"
+#include "components/autofill/core/common/form_data_predictions.h"
Garrett Casto 2015/03/24 23:31:50 Don't think that this is necessary anymore.
dvadym 2015/03/25 16:34:08 Done.
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
#include "components/password_manager/core/browser/password_manager_client.h"
@@ -67,6 +68,13 @@ void ContentPasswordManagerDriver::AccountCreationFormsFound(
forms));
}
+void ContentPasswordManagerDriver::AutofillDataReceived(
+ const std::map<autofill::FormData, autofill::FormFieldData>& predictions) {
+ content::RenderFrameHost* host = render_frame_host_;
+ host->Send(new AutofillMsg_AutofillPasswordDataReceived(host->GetRoutingID(),
+ predictions));
+}
+
void ContentPasswordManagerDriver::GeneratedPasswordAccepted(
const base::string16& password) {
content::RenderFrameHost* host = render_frame_host_;

Powered by Google App Engine
This is Rietveld 408576698