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

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

Issue 10458018: This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some changes based on the code review. Created 8 years, 7 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/password_generation_manager.cc
diff --git a/chrome/renderer/autofill/password_generation_manager.cc b/chrome/renderer/autofill/password_generation_manager.cc
index 65d96035cba569d755e6926f4253644bbca89919..3cce16407d98c951d220d8f04bc0f61e7b88fcfc 100644
--- a/chrome/renderer/autofill/password_generation_manager.cc
+++ b/chrome/renderer/autofill/password_generation_manager.cc
@@ -80,8 +80,10 @@ void PasswordGenerationManager::FocusedNodeChanged(
if (!input_element.isNull() &&
account_creation_elements_.first == input_element) {
gfx::Rect rect(input_element.boundsInViewportSpace());
- Send(new AutofillHostMsg_ShowPasswordGenerationPopup(routing_id(),
- rect));
+ Send(new AutofillHostMsg_ShowPasswordGenerationPopup(
+ routing_id(),
+ rect,
+ input_element.maxLength()));
}
}
« chrome/browser/autofill/password_generator.cc ('K') | « chrome/common/autofill_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698