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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 23432002: Generate passwords only for forms that autofill server marks as account creation forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 7 years, 3 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/browser/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 4b5094903ca815ca029ee36dc7c6bd85cb749490..4834530fd5aa0de7a6e7ee12905bfaf6765c3dbc 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/infobars/infobar_service.h"
+#include "chrome/browser/password_manager/password_generation_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/autocheckout_bubble.h"
#include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h"
@@ -257,4 +258,13 @@ void TabAutofillManagerDelegate::WebContentsDestroyed(
HideAutofillPopup();
}
+void TabAutofillManagerDelegate::DetectAccountCreationForms(
+ const std::vector<autofill::FormStructure*>& forms) {
+ PasswordGenerationManager* manager =
+ PasswordGenerationManager::FromWebContents(web_contents_);
+ if (manager) {
+ manager->DetectAccountCreationForms(forms);
+ }
Ilya Sherman 2013/09/03 23:58:01 nit: No need for curly braces.
zysxqn 2013/09/04 17:26:20 Done.
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698